mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 20:55:52 +12:00
Add ability to run as a linux service
This commit is contained in:
parent
fb8eab0f8e
commit
1735c35a7c
30 changed files with 935 additions and 489 deletions
25
HorseIsleServer/HISPCli/Resources/HISP.service
Normal file
25
HorseIsleServer/HISPCli/Resources/HISP.service
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue