66

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
1

2 Answers 2

116

sudo service rsyslog restart

That should do it.

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

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