Karl Vogel <voge...@pobox.com> wrote:

>   Removing the --quiet flag and using something like safesys() would:
> 
>   * let systemctl write something (hopefully an error message),
>   * show exactly what arguments are being passed to it, and
>   * show its exit value.

Your safesys includes basically exactly the code suggested in perldoc
system so that's good.

I believe systemctl prints errors regardless of the presence of --quiet
so removing it may not be necessary, but can't do any harm.

Reply via email to