Add ability to run as a linux service

This commit is contained in:
SilicaAndPina 2022-04-15 00:07:28 +12:00
parent fb8eab0f8e
commit 1735c35a7c
30 changed files with 935 additions and 489 deletions

View file

@ -0,0 +1,25 @@
[Unit]
Description=HISP (Horse Isle Server Program)
After=syslog.target
After=network.target
Wants=mariadb.service
After=mariadb.service
[Service]
RestartSec=2s
Type=simple
User=horseisle
Group=horseisle
WorkingDirectory=/etc/hisp
ExecStart=/usr/bin/HISPCli
Restart=always
Environment=USER=horseisle HOME=/etc/hisp/home HISP_BASE_DIR=/etc/hisp HISP_CONF_FILE=/etc/hisp/server.properties
[Install]
WantedBy=multi-user.target