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
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
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.
>
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
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
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.
>
>
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
_