GNU/Linux Starting and Stopping Services


Example

On systems that use the System-V style init scripts, such as RHEL/CentOS 6:

service <service> start

service <service> stop

On systems using systemd, such as Ubuntu (Server and Desktop) >= 15.04, and RHEL/CentOS >= 7:

systemctl <service> dnsmasq

systemctl <service> dnsmasq