Difference between revisions of "Add new systemd service"

From HyperSecurity Wiki
Jump to: navigation, search
(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...")
(No difference)

Revision as of 20:46, 26 March 2019

Systemd service file example:

https://www.shellhacks.com/systemd-service-file-example/

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