Add new systemd service

From HyperSecurity Wiki
Jump to: navigation, search

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