Conversion to Makefile and systemd unit

This commit is contained in:
Steve Howes
2023-10-18 15:14:54 +01:00
parent 1d2c324747
commit 8dc785d843
6 changed files with 60 additions and 20 deletions
+17
View File
@@ -0,0 +1,17 @@
[Unit]
Description=OS Grid Server
ConditionPathExists=/opt/sartools/osgrid-server
After=network.target
[Service]
Type=simple
User=sartools
Group=sartools
WorkingDirectory=/opt/sartools/
ExecStart=/opt/sartools/osgrid-server --port localhost:9090
Restart=on-failure
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=osgrid-server
[Install]
WantedBy=multi-user.target