Don't start nscd if it's not already running

"systemctl restart" will start a service if it's not already
running...
This commit is contained in:
Eelco Dolstra 2013-05-07 14:21:27 +02:00
parent e62c0d2e1f
commit 8af81ad66b

View file

@ -67,7 +67,7 @@ in
'' + optionalString config.services.nscd.enable ''
# Invalidate the nscd cache whenever resolv.conf is
# regenerated.
libc_restart='${pkgs.systemd}/bin/systemctl restart --no-block nscd.service'
libc_restart='${pkgs.systemd}/bin/systemctl try-restart --no-block nscd.service'
'' + optionalString cfg.dnsSingleRequest ''
# only send one DNS request at a time
resolv_conf_options='single-request'