mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 05:50:14 +00:00
Add systemd unit file for nscd
Provide an example systemd unit and tmpfile for running nscd.
This commit is contained in:
parent
584b18eb4d
commit
73616a7427
@ -1,3 +1,8 @@
|
||||
2013-12-16 Allan McRae <allan@archlinux.org>
|
||||
|
||||
* nscd/nscd.service: New file.
|
||||
* nscd/nscd.tmpfiles: New file.
|
||||
|
||||
2013-12-14 Ondřej Bílka <neleai@seznam.cz>
|
||||
|
||||
[BZ #12100]
|
||||
|
18
nscd/nscd.service
Normal file
18
nscd/nscd.service
Normal file
@ -0,0 +1,18 @@
|
||||
# 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
|
4
nscd/nscd.tmpfiles
Normal file
4
nscd/nscd.tmpfiles
Normal file
@ -0,0 +1,4 @@
|
||||
# Configuration to create /run/nscd directory
|
||||
# Used as part of systemd's tmpfiles
|
||||
|
||||
d /run/nscd 0755 root root
|
Loading…
Reference in New Issue
Block a user