Skip to content

create a systemd service

create a new service file in the folder /etc/systemd/system

the file should look like this:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
[Unit]
Description=best description ever
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=user
ExecStart=command_to_start

[Install]
WantedBy=multi-user.target