services: Increase delay before SIGKILL is sent when halting.

* gnu/services/base.scm (user-processes-service): Increase the default
  value of 'grace-delay'.  This leaves more time for processes to clean
  up their PID files, /tmp/.X0-lock, etc.
This commit is contained in:
Ludovic Courtès 2014-11-05 09:35:44 +01:00
parent 52b321e908
commit 98c16943d5
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ names such as device-mapping services."
;; the system. Typical example is user-space file systems. ;; the system. Typical example is user-space file systems.
"/etc/dmd/do-not-kill") "/etc/dmd/do-not-kill")
(define* (user-processes-service requirements #:key (grace-delay 2)) (define* (user-processes-service requirements #:key (grace-delay 5))
"Return the service that is responsible for terminating all the processes so "Return the service that is responsible for terminating all the processes so
that the root file system can be re-mounted read-only, just before that the root file system can be re-mounted read-only, just before
rebooting/halting. Processes still running GRACE-DELAY seconds after SIGTERM rebooting/halting. Processes still running GRACE-DELAY seconds after SIGTERM