Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add systemd unit file for nscd
Provide an example systemd unit and tmpfile for running nscd.
- Loading branch information
Allan McRae
committed
Dec 16, 2013
1 parent
584b18e
commit 73616a7
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Configuration to create /run/nscd directory | ||
# Used as part of systemd's tmpfiles | ||
|
||
d /run/nscd 0755 root root |