Difference between revisions of "Add new systemd service"
(Created page with "Systemd service file example: https://www.shellhacks.com/systemd-service-file-example/ Systemd files: /etc/systemd/system/* Reload systemd daemon after changes: systemctl...") |
|||
Line 1: | Line 1: | ||
Systemd service file example: | Systemd service file example: | ||
https://www.shellhacks.com/systemd-service-file-example/ | https://www.shellhacks.com/systemd-service-file-example/ | ||
+ | |||
+ | Systemd service file extension: | ||
+ | servicename.service | ||
Systemd files: | Systemd files: |
Latest revision as of 20:49, 26 March 2019
Systemd service file example:
https://www.shellhacks.com/systemd-service-file-example/
Systemd service file extension:
servicename.service
Systemd files:
/etc/systemd/system/*
Reload systemd daemon after changes:
systemctl daemon-reload
Start a service:
systemctl start servicename
Stop a service:
systemctl stop servicename
Enable service at boot:
systemctl enable servicename
Disable service at boot:
systemctl disable servicename