feat: initialize systemd service file

This commit is contained in:
Aliberk Sandıkçı 2023-08-02 23:08:11 +03:00
parent 897675d529
commit 2029650c72
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1

View 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