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

2 Answers2

115

sudo service rsyslog restart

That should do it.

Janne Pikkarainen
  • 31,454
  • 4
  • 56
  • 78
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
Thomas B
  • 81
  • 1
  • 3