feat: initialize systemd service file
This commit is contained in:
parent
897675d529
commit
2029650c72
1 changed files with 17 additions and 0 deletions
17
build/package/deb/ahenkd-go.service
Normal file
17
build/package/deb/ahenkd-go.service
Normal file
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=Ahenk Agent
|
||||
Wants=network-online.target
|
||||
After=network.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=root
|
||||
Group=root
|
||||
ExecStart=/usr/bin/ahenkd-go start
|
||||
ExecStop=/usr/bin/ahenkd-go stop
|
||||
ExecReload=kill -HUP $MAINPID
|
||||
PIDFile=/run/ahenkd-go.pid
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue