How to restart rsyslog daemon on ubuntu

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

Solution 1:

sudo service rsyslog restart

That should do it.

Solution 2:

If you are using systemctl, you can use:

systemctl restart rsyslog.service 

Once restarted, check its status with the command:

systemctl status rsyslog.service