The SYSTEMCTL command is a system Service Manager directive that actually combines both the service and Chkconfig commands.
(1) Usage:
usage: systemctl [parameters] [service]
(2) Function:
Features: systemd is a system and service Manager under Linux that is compatible with SysV and LSB startup scripts.
(3) Option parameters:
Start,stop,restart,status,enable,disable,is-enabled
(4) Example:
1) [[email protected] sunjimeng]# Systemctl | More-5 Show all services that have been activated
[Email protected] sunjimeng]# Systemctl | More-5UNIT LOAD ACTIVE SUB Descriptionproc-sys-fs-Binfmt_misc.automount loaded active running A Rbitrary executable file Formats file System automount pointsys-devices-pci0000:xx-0000:xx:07.1-ata2-host1-target1:0:0-1:0:0:0-block-Sr0.device loaded Active plugged--more--[5]+ has stopped Systemctl | More-5[email protected] sunjimeng]# Systemctl list-units |more-5UNIT LOAD ACTIVE SUB Descriptionproc-sys-fs-Binfmt_misc.automount loaded active running A Rbitrary executable file Formats file System automount pointsys-devices-pci0000:xx-0000:xx:07.1-ata2-host1-target1:0:0-1:0:0:0-block-Sr0.device loaded Active plugged--more--
2) [[email protected] sunjimeng]# systemctl list-unit-files |more-5 Show all installed services
[Email protected] sunjimeng]# systemctl list-unit-files |more-5Unit FILE State proc- Sys-fs-binfmt_misc.automount static dev-hugepages.mount static Dev-mqueue.mount static proc-fs-nfsd.mount static --more--
3) [[email protected] sunjimeng]# Systemctl is-enabled telnet.socket See if a specific service is set to start
is-is-enabled Telnet.socket ". Enabled
(5) Other:
The SYSTEMD features are:
support parallel tasks, using both socket and D-busactivation service, start daemon on demand (daemon), monitor process with Linux cgroups, support snapshot and system Recovery, maintain mount point and auto mount point The services are precisely controlled based on dependency relationships.
Every day a Linux command (SYSTEMCTL) command