[systemd-devel] Per user limit defaults in systemd.conf

2020-08-31 Thread Joshua Miller
Is there a way to set per-user defaults for values in systemd.conf? e.g. I'd like to set DefaultLimitMEMLOCK for the 'app' user (User=app), such that all units run as User=app get the setting. I'm looking for a way to do what's done via pam_limits per limits.conf (e.g. `username hardno

Re: [systemd-devel] User/Group overrides in a templated service triggered via timer

2020-08-31 Thread Kevin P. Fleming
Ahh, you're right. I do not 'enable' my timer-activated service units, since 'enable' just processes the WantedBy/similar specifications to create symlinks. On Mon, Aug 31, 2020 at 4:50 PM Konstantin Ryabitsev wrote: > > On Mon, Aug 31, 2020 at 04:49:32PM -0400, Kevin P. Fleming wrote: > > Yes, t

Re: [systemd-devel] User/Group overrides in a templated service triggered via timer

2020-08-31 Thread Konstantin Ryabitsev
On Mon, Aug 31, 2020 at 04:20:13PM -0400, Kevin P. Fleming wrote: > Did you also create an instance of the timer with the same instance > suffix? I've got a configuration working like that and it works fine. > If you don't want to do that, you can explicitly configure the name of > the service to b

Re: [systemd-devel] User/Group overrides in a templated service triggered via timer

2020-08-31 Thread Konstantin Ryabitsev
On Mon, Aug 31, 2020 at 04:49:32PM -0400, Kevin P. Fleming wrote: > Yes, to get the instance-named symlink created. Wouldn't that execute the service on boot, or does that not apply to oneshot items? -K ___ systemd-devel mailing list systemd-devel@list

Re: [systemd-devel] User/Group overrides in a templated service triggered via timer

2020-08-31 Thread Kevin P. Fleming
Yes, to get the instance-named symlink created. On Mon, Aug 31, 2020 at 4:36 PM Konstantin Ryabitsev wrote: > > On Mon, Aug 31, 2020 at 04:20:13PM -0400, Kevin P. Fleming wrote: > > Did you also create an instance of the timer with the same instance > > suffix? I've got a configuration working li

Re: [systemd-devel] User/Group overrides in a templated service triggered via timer

2020-08-31 Thread Konstantin Ryabitsev
On Mon, Aug 31, 2020 at 04:20:13PM -0400, Kevin P. Fleming wrote: > Did you also create an instance of the timer with the same instance > suffix? I've got a configuration working like that and it works fine. > If you don't want to do that, you can explicitly configure the name of > the service to b

Re: [systemd-devel] User/Group overrides in a templated service triggered via timer

2020-08-31 Thread Kevin P. Fleming
Did you also create an instance of the timer with the same instance suffix? I've got a configuration working like that and it works fine. If you don't want to do that, you can explicitly configure the name of the service to be triggered (in the timer unit) instead of relying on the timer/service na

[systemd-devel] User/Group overrides in a templated service triggered via timer

2020-08-31 Thread Konstantin Ryabitsev
Hi, all: I have the following templated service definition: --- [email protected] --- [Unit] Description=Grok-fsck service for %I Documentation=https://github.com/mricon/grokmirror [Service] Type=oneshot Environment="EXTRA_FSCK_OPTS=" EnvironmentFile=-/etc/sysconfig/grokmirror.default Environme

Re: [systemd-devel] Any published books on systemd? A cookbook?

2020-08-31 Thread Tom Browder
On Mon, Aug 31, 2020 at 10:43 AM Arian Van Putten wrote: > > I can recommend the "Systemd for Administrators" series on > http://0pointer.net/blog/archives.html as a good cookbook introduction to > systemd Thank you, Arian. Best regards, -Tom ___ sy

Re: [systemd-devel] Any published books on systemd? A cookbook?

2020-08-31 Thread Arian Van Putten
I can recommend the "Systemd for Administrators" series on http://0pointer.net/blog/archives.html as a good cookbook introduction to systemd On Fri, Aug 28, 2020 at 4:47 PM Tom Browder wrote: > I want to create a service file that has to consider other services. I > have looked at the man pages