Move TimeoutStopSec to [Service]
It belongs here. Setting it in [Unit] produces the following warning: ``` systemd[1]: /usr/lib/systemd/system/smartdns.service:6: Unknown key name 'TimeoutStopSec' in section 'Unit', ignoring. ```
This commit is contained in:
@@ -3,7 +3,6 @@ Description=smartdns server
|
|||||||
After=network.target
|
After=network.target
|
||||||
StartLimitBurst=0
|
StartLimitBurst=0
|
||||||
StartLimitIntervalSec=60
|
StartLimitIntervalSec=60
|
||||||
TimeoutStopSec=5
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
@@ -13,6 +12,7 @@ ExecStart=@SBINDIR@/smartdns -p @RUNSTATEDIR@/smartdns.pid $SMART_DNS_OPTS
|
|||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
|
TimeoutStopSec=5
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user