From 2029650c724ba91ff43537d5f3b4f1369a33dd9f Mon Sep 17 00:00:00 2001 From: asandikci Date: Wed, 2 Aug 2023 23:08:11 +0300 Subject: [PATCH] feat: initialize systemd service file --- build/package/deb/ahenkd-go.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 build/package/deb/ahenkd-go.service diff --git a/build/package/deb/ahenkd-go.service b/build/package/deb/ahenkd-go.service new file mode 100644 index 0000000..142509a --- /dev/null +++ b/build/package/deb/ahenkd-go.service @@ -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 \ No newline at end of file