how can i restart rsyslog or rsyslogd on ubuntu 10

root@terminator:/etc/init.d# service rsyslog status
rsyslog stop/waiting
root@terminator:/etc/init.d# service rsyslog stop
stop: Unknown instance:
root@terminator:/etc/init.d# service rsyslog restart
restart: Unknown instance:
root@terminator:/etc/init.d# service rsyslog start
start: Job failed to start
root@terminator:/etc/init.d# service rsyslogd start
rsyslogd: unrecognized service

sudo service rsyslog restart

That should do it.

  • 1
    the output is shown above in the post – John Sep 1 '10 at 1:45
  • 3
    Have you modified the rsyslog.conf? If the config file is somehow invalid, service command cannot bring up the rsyslog. – Janne Pikkarainen Sep 1 '10 at 2:59
  • 1
    Why would restart work with sudo, if it didn't work before as user root? – RalfFriedl Jul 20 '18 at 6:17
  • 2
    This helped me 10 years later. Thanks! – Aaron Jan 24 '20 at 13:49

If you are using systemctl, you can use:

systemctl restart rsyslog.service 

Once restarted, check its status with the command:

systemctl status rsyslog.service

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy