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]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/MistController -c /etc/mistserver.conf
|
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
TasksMax=infinity
|
TasksMax=infinity
|
||||||
TimeoutStopSec=8
|
TimeoutStopSec=8
|
||||||
|
Environment=MIST_LOG_SYSTEMD=1
|
||||||
|
ExecStart=/usr/bin/MistController -c /etc/mistserver.conf
|
||||||
ExecStopPost=/bin/bash -c "rm -f /dev/shm/*Mst*"
|
ExecStopPost=/bin/bash -c "rm -f /dev/shm/*Mst*"
|
||||||
|
ExecReload=/bin/kill -s USR1 $MAINPID
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Reference in a new issue