Pseudo Service Command [Ubuntu]

If you are like me and are used to the Redhat/CentOS way of doing things, Ubuntu can seem a little archaic at times…especially when it comes to handling services.

Installing the following package will give you a services-type command.

sudo apt-get install sysvconfig

Usage: service [[-h] | [--h] | [--help] | [-V] | [--version] | [--status-all]]
| service-name action
'service-name' is one of the scripts in /etc/init.d. 'action' is one of stop,
start, restart, status, reload, force-stop, force-reload, or --full-restart.

It links the /etc/init.d/ stuff so you can just type something like

sudo services apache2 restart

Unfortunately its not as fantastic as the Redhat service command, as it only links the /etc/init.d scripts. So no service iptables save