71

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

123

sudo service rsyslog restart

That should do it.

3
  • 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
10

If you are using systemctl, you can use:

systemctl restart rsyslog.service 

Once restarted, check its status with the command:

systemctl status rsyslog.service

You must log in to answer this question.