This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add systemd unit file for nscd


On 05/10/2013 02:39 AM, Allan McRae wrote:
Any further comments on this?   Update version below.

This looks fine now.

I suggest you add a comment to each file to make the purpose clear, please choose an appropriate one.


ChangeLog:

2013-05-10  Allan McRae  <allan@archlinux.org>

	* nscd/nscd.service: New file.
	* nscd/nscd.tmpfiles: New file.



diff --git a/nscd/nscd.service b/nscd/nscd.service
new file mode 100644
index 0000000..5541189
--- /dev/null
+++ b/nscd/nscd.service
@@ -0,0 +1,16 @@

Comment proposal:
# systemd service file for nscd

+[Unit]
+Description=Name Service Cache Daemon
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/nscd --foreground
+ExecStop=/usr/sbin/nscd --shutdown
+ExecReload=/usr/sbin/nscd -i passwd
+ExecReload=/usr/sbin/nscd -i group
+ExecReload=/usr/sbin/nscd -i hosts
+ExecReload=/usr/sbin/nscd -i services
+Restart=always
+PIDFile=/run/nscd/nscd.pid
+
+[Install]
+WantedBy=multi-user.target
diff --git a/nscd/nscd.tmpfiles b/nscd/nscd.tmpfiles
new file mode 100644
index 0000000..8a24a78
--- /dev/null
+++ b/nscd/nscd.tmpfiles
@@ -0,0 +1 @@
+d /run/nscd 0755 root root


Proposal:
# Configuration to create /run/nscd directory
# Used as part of systemd's tmpfiles


Andreas
--
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]