add systemd unit file

This commit is contained in:
samuel 2023-01-19 16:57:02 +01:00
parent 10f2cdaef3
commit d65a67fb7f
1 changed files with 11 additions and 0 deletions

View File

@ -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