Add new systemd service

From HyperSecurity Wiki
Revision as of 20:46, 26 March 2019 by Srapaz (talk | contribs) (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...")
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

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