Skip to content

Instantly share code, notes, and snippets.

@dineshnagarit
Last active April 26, 2019 07:01
Show Gist options
  • Save dineshnagarit/3d92a3d6138a56a3b7122a26459d2e36 to your computer and use it in GitHub Desktop.
Save dineshnagarit/3d92a3d6138a56a3b7122a26459d2e36 to your computer and use it in GitHub Desktop.
systemctl start service-name
systemctl status service-name
systenctl stop service-name
systemctl enable service-name
systemctl disable service-name
systemctl is-enabled service-name //To check whether the service is currently configured to start on the next boot up
systemctl is-active service-name //To check whether the service is active
How to remove Systemd services completely
systemctl stop service-name
Then disable the service
systemctl disable service-name
Removing the service in systemd
rm /etc/systemd/system/service-name
rm /etc/systemd/system/service-name/[related symlinks]
Reload systemd
systemctl daemon-reload
Finally run,
systemctl reset-failed
[FOR FURTHER READING PLEASE VISIT THIS URL: https://linoxide.com/linux-how-to/enable-disable-services-ubuntu-systemd-upstart/]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment