| |
Exercises: admin commands to start/stop services
Systemd driven services
Available on Ubuntu 16.04 and RedHat 7
Command systemctl talks to systemd. To see all the services registered with systemd, run the following:
To stop rsyslog services, run
To see the status of the service:
Stop syslog.socket then rsyslog.service:
To see the status of the service:
To start the service and see its status:
Legacy System V services
Used to be available on any Linux distro.
Now they are provided within Systemd for backward compatibility.
The System V (non-event driven) service startup scripts are located in directory /etc/init.d. For example to stop and then start cups printing service, use the following
Is the same as
|
|