mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
add systemd service file for relay
This commit is contained in:
parent
db366bb515
commit
0cee3c8d60
1 changed files with 24 additions and 0 deletions
24
xwords4/relay/relay.service
Normal file
24
xwords4/relay/relay.service
Normal file
|
@ -0,0 +1,24 @@
|
|||
[Unit]
|
||||
# specifies metadata and dependencies
|
||||
Description=Start legacy CrossWords relay
|
||||
After=postgresql.service
|
||||
|
||||
StartLimitIntervalSec=500
|
||||
StartLimitBurst=5
|
||||
|
||||
[Service]
|
||||
# Service specify the user and group under which our process will run.
|
||||
User=relay
|
||||
|
||||
WorkingDirectory=/home/relay/dev/git/xwords/xwords4/relay
|
||||
ExecStart=/home/relay/dev/git/xwords/xwords4/relay/xwrelay -F -D
|
||||
|
||||
# on-failure ignores SIGTERM and a couple of other signals making it
|
||||
# harder to test. Not sure if there's downside to 'always' but that's
|
||||
# what I'm using for now
|
||||
# Restart=on-failure
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue