- list all services:
systemctl list-unit-files - list running services status:
systemctl list-units - list failed services:
systemctl --failed - list available services:
systemctl --all - start a service:
systemctl start [SERVICE_NAME] - stop a service:
systemctl stop [SERVICE_NAME] - restart a service:
systemctl restart [SERVICE_NAME] - get the status of a service:
systemctl status [SERVICE_NAME] - enable a service:
systemctl enable [SERVICE_NAME] - disable a service:
systemctl disable [SERVICE_NAME]
- list services:
rc-status - list failed services:
rc-status --crashed - list available services:
rc-update -v showorls /etc/init.d/ - start a service:
rc-service [SERVICE_NAME] startorservice [SERVICE_NAME] startor/etc/init.d/[SERVICE_NAME] start - stop a service:
rc-service [SERVICE_NAME] stoporservice [SERVICE_NAME] stopor/etc/init.d/[SERVICE_NAME] stop - restart a service:
rc-service [SERVICE_NAME] restartorservice [SERVICE_NAME] restartor/etc/init.d/[SERVICE_NAME] restart - get the status of a service:
rc-service [SERVICE_NAME] statusorservice [SERVICE_NAME] statusor/etc/init.d/[SERVICE_NAME] status - enable a service:
rc-update add [SERVICE_NAME] - disable a service:
rc-update del [SERVICE_NAME]
note, if you're an Artix user, available services are in
/etc/runit/svdirectory and the enabled services are in/run/runit/servicedirectory
- list all available services:
ls /etc/sv - list all enabled services:
ls /var/service/ - start a service:
sv up [SERVICE_NAME]orsv u [SERVICE_NAME] - stop a service:
sv down [SERVICE_NAME]orsv d [SERVICE_NAME] - restart a service:
sv restart [SERVICE_NAME]orsv t [SERVICE_NAME] - get the status of a service:
sv status [SERVICE_NAME]orsv s [SERVICE_NAME] - get the current status of all enabled services:
sv status /var/service/* - enable a service:
ln -s /etc/sv/[SERVICE_NAME] /var/service - disable a service:
rm /var/service/[SERVICE_NAME]
Please, use standard UNIX man page syntax conventions. All mandatory parameters should be enclosed in angle brackets (<>) and optional ones in square brackets ([]). Example for OpenRC, where service is mandatory and runlevel optional (which defaults to, well, runlevel default):
rc-update add <service> [runlevel]