No OK message when re-starting service

Suvayu Ali fatkasuvayu+linux at gmail.com
Thu Mar 20 14:24:02 UTC 2014


On Thu, Mar 20, 2014 at 12:59:43PM +0000, Timothy Murphy wrote:
> I notice that when I run
>   # systemctl restart sendmail.service
> I get no OK message on my Fedora-20 laptop,
> as I do when I run
>   # service sendmail restart
> on my CentOS server.
> 
> This seems a little surprising to me.
> Is there some setting I could add to get confirmation?
> (I know I could run "systemctl status ...".)
> Would I get a message if the restart failed?

You get a message if it fails.  Try:

  # systemctl start foo.service

I think the present behaviour is the classic *nix dictum: notify only
when something unexpected happens.  Since you asked for a restart, it
notifies only when it fails.

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list