->
I spent the day teaching a class on Redhat Enterprise Linux 5 and in doing so got in the habit of using some Redhat specific commands. After class when I got back on my Ubuntu laptop I attempted to restart a service using “service network restart”. Instead of complaining about the service command not being found it instructed me that if I wanted that tool I would need to install the sysvconfig.
If you’re familiar with the Redat tool, service, and would like that functionality on Ubuntu simply do the following:
sudo aptitude install sysvconfig
Once this package is installed you can then start, stop or restart services on your machine using commands like:
sudo service apache2 restart
sudo service ntpd stop
sudo service network restart
As far as I understand this is equivalent to running:
sudo /etc/init.d/apache2 restart
If anyone knows any other differences between ’service’ and ‘/etc/init.d/’ I’d be interested in hearing about them. Enjoy.
If this site has been useful, please consider participating in the Fundraiser.