From d65a67fb7f1c79f457038368973e956070a2afcc Mon Sep 17 00:00:00 2001 From: samuel Date: Thu, 19 Jan 2023 16:57:02 +0100 Subject: [PATCH] add systemd unit file --- systemd/netoik-api.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 systemd/netoik-api.service diff --git a/systemd/netoik-api.service b/systemd/netoik-api.service new file mode 100644 index 0000000..f9b0980 --- /dev/null +++ b/systemd/netoik-api.service @@ -0,0 +1,11 @@ +[Unit] +Description=Netoïk rest api +After=network.target + +[Service] +User=www-data +ExecStart=/usr/netoik-api/bin/server -c /etc/netoik-api/server.conf +Restart=always + +[Install] +WantedBy=multi-user.target