[PATCH 2/2] Mark nscd service as forking in systemd service file (#16639)

Siddhesh Poyarekar siddhesh@redhat.com
Fri Feb 28 11:45:00 GMT 2014


Hi,

This patch allows systemctl to return a failure when nscd startup
fails.  Setting the service type to forking makes systemd wait for the
parent process to exit and use its return code to know if the service
startup succeeded.  This, with the earlier patch to make the parent
track the child startup allows systemctl to report service startup
status more accurately.

Siddhesh

	* nscd/nscd.service: Make service type forking.

---
 nscd/nscd.service | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nscd/nscd.service b/nscd/nscd.service
index 99c7563..b7428a3 100644
--- a/nscd/nscd.service
+++ b/nscd/nscd.service
@@ -4,8 +4,8 @@
 Description=Name Service Cache Daemon
 
 [Service]
-Type=simple
-ExecStart=/usr/sbin/nscd --foreground
+Type=forking
+ExecStart=/usr/sbin/nscd
 ExecStop=/usr/sbin/nscd --shutdown
 ExecReload=/usr/sbin/nscd -i passwd
 ExecReload=/usr/sbin/nscd -i group
-- 
1.8.3.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140228/ef7f6301/attachment.sig>


More information about the Libc-alpha mailing list