Write service file for TTN listener
This commit is contained in:
parent
d84d838775
commit
abb13161da
1 changed files with 21 additions and 0 deletions
21
ttn-server.service
Normal file
21
ttn-server.service
Normal file
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=Msc Summer Project TTN Listener
|
||||
After=network.target
|
||||
|
||||
# No more than 5 crashes in 12 hours
|
||||
StartLimitIntervalSec=43200
|
||||
StartLimitBurst=5
|
||||
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
#PIDFile=/run/rhinoreminds/rhinoreminds.pid
|
||||
# We change our own user
|
||||
User=sbrl
|
||||
WorkingDirectory=/home/sbrl/Msc-Summer-Project
|
||||
ExecStart=/home/sbrl/Msc-Summer-Project/build server-ttn
|
||||
Restart=always
|
||||
# Other Restart options: or always, on-abort, etc
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue