Merge "Provide finite value for systemd's TimeoutStopSec"

This commit is contained in:
Zuul 2017-11-21 20:04:29 +00:00 committed by Gerrit Code Review
commit 4caa9c3580

View File

@ -1392,7 +1392,7 @@ function write_user_unit_file {
iniset -sudo $unitfile "Service" "User" "$user"
iniset -sudo $unitfile "Service" "ExecStart" "$command"
iniset -sudo $unitfile "Service" "KillMode" "process"
iniset -sudo $unitfile "Service" "TimeoutStopSec" "infinity"
iniset -sudo $unitfile "Service" "TimeoutStopSec" "300"
iniset -sudo $unitfile "Service" "ExecReload" "$KILL_PATH -HUP \$MAINPID"
if [[ -n "$group" ]]; then
iniset -sudo $unitfile "Service" "Group" "$group"