CentOS Systemctl

Determine default target: systemctl get-default

Change to a new target, this example reboots: systemctl isolate reboot.target

Valid targets:

poweroff.target

Rescue.target

Multi-user.target

Graphical.target

Reboot.target

See all available units: systemctl list-units (Or just run “systemctl” by itself)

See what’s set to autostart: systemctl list-unit-files

Set a service to start on boot: systemctl enable servicename

Start a service: systemctl start servicename

Stop a service: systemctl stop servicename

Check status of service: systemctl status servicename

Close Menu
×
×

Cart