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

Siddhesh Poyarekar siddhesh@redhat.com
Wed Feb 26 17:22:00 GMT 2014


Hi,

Currently the nscd service is installed in systemd as a simple
service, which means that it is able to handle its own errors and does
not quit.  Since nscd does not fit that description, i.e. it can exit
on errors like, say, failing to parse nscd.conf, it should be declared
as forking instead.  Tested on Fedora.

Siddhesh

	[BZ #16639]
	* nscd/nscd.service: Make service type as forking.

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

diff --git a/nscd/nscd.service b/nscd/nscd.service
index 3ca8aa8..a970186 100644
--- a/nscd/nscd.service
+++ b/nscd/nscd.service
@@ -5,8 +5,8 @@ Description=Name Service Cache Daemon
 After=syslog.target
 
 [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/20140226/d29e0908/attachment.sig>


More information about the Libc-alpha mailing list