Updated systemd script.
This commit is contained in:
parent
17aea79d57
commit
f252c44fe8
1 changed files with 6 additions and 2 deletions
|
@ -1,12 +1,16 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=MistServer
|
Description=MistServer
|
||||||
After=networkmanager.service
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/MistController -c /etc/mistserver.conf
|
ExecStart=/usr/bin/MistController -c /etc/mistserver.conf
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=2
|
||||||
|
TasksMax=infinity
|
||||||
|
TimeoutStopSec=8
|
||||||
|
ExecStopPost=/bin/bash -c "rm -f /dev/shm/*Mst*"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue