Improved systemd service file: added reload command and improved logging integration
This commit is contained in:
parent
98b10473a4
commit
a45239d5ac
1 changed files with 3 additions and 1 deletions
|
@ -4,12 +4,14 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/MistController -c /etc/mistserver.conf
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
TasksMax=infinity
|
||||
TimeoutStopSec=8
|
||||
Environment=MIST_LOG_SYSTEMD=1
|
||||
ExecStart=/usr/bin/MistController -c /etc/mistserver.conf
|
||||
ExecStopPost=/bin/bash -c "rm -f /dev/shm/*Mst*"
|
||||
ExecReload=/bin/kill -s USR1 $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Add table
Reference in a new issue