[systemd-devel] Getting unit configuration from /etc file

2018-08-16 Thread Kenneth Porter
Is there some way to fetch a unit variable's value from another file in /etc, instead of having it hard-coded in the unit file? I'd like to use IOSchedulingClass in a unit file, but I'd like to fetch the value (idle or none) from a file in the service's /etc directory, so the admin doesn't hav

Re: [systemd-devel] Return codes of systemctl (status)

2018-08-16 Thread Cecil Westerhof
2018-08-16 18:51 GMT+02:00 Filipe Brandenburger : > Agreed. In particular, man page for systemctl simply says "on success, > 0 is returned, a non-zero failure code otherwise" for exit status. In > other words, the specific non-zero exit codes are undocumented, so > shouldn't be relied upon. > Per

Re: [systemd-devel] Return codes of systemctl (status)

2018-08-16 Thread Cecil Westerhof
2018-08-16 18:18 GMT+02:00 Dave Reisner : > On Thu, Aug 16, 2018 at 01:27:12PM +0200, Cecil Westerhof wrote: > > The man page of systemctl says: > > On success, 0 is returned, a non-zero failure code otherwise. > > > > When I do a systemctl status on a service that is not running I get a 3. >

Re: [systemd-devel] Return codes of systemctl (status)

2018-08-16 Thread Dave Reisner
On Thu, Aug 16, 2018 at 01:27:12PM +0200, Cecil Westerhof wrote: > The man page of systemctl says: >     On success, 0 is returned, a non-zero failure code otherwise. > > When I do a systemctl status on a service that is not running I get a 3. > What other values can be returned and where do I fin

Re: [systemd-devel] Return codes of systemctl (status)

2018-08-16 Thread Cecil Westerhof
2018-08-16 16:35 GMT+02:00 Ryan Gonzalez : > I believe the errors are based on errno: http://www.virtsync.com > /c-error-codes-include-errno > > Return status 3 -> ESRCH -> No such process > Thanks I will look into that. I think it is not completely correct. For example if I do: systemctl s

Re: [systemd-devel] Return codes of systemctl (status)

2018-08-16 Thread Ryan Gonzalez
I believe the errors are based on errno: http://www.virtsync.com/c-error-codes-include-errno Return status 3 -> ESRCH -> No such process On Thu, Aug 16, 2018, 6:27 AM Cecil Westerhof wrote: > The man page of systemctl says: > On success, 0 is returned, a non-zero failure code otherwise. > >

[systemd-devel] Return codes of systemctl (status)

2018-08-16 Thread Cecil Westerhof
The man page of systemctl says: On success, 0 is returned, a non-zero failure code otherwise. When I do a systemctl status on a service that is not running I get a 3. What other values can be returned and where do I find those? -- Cecil Westerhof _