diff options
author | root <root@rshg054.dnsready.net> | 2011-11-19 23:14:49 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-11-19 23:14:49 +0000 |
commit | a3024f8996981b28ced27466cbd1d4ab40e57324 (patch) | |
tree | 33e1ab51e17de598241385ef355cc67662d9ad74 /staging/ypserv/yppasswd | |
parent | 126af148530f656a2ed192a852477b2ee97d5397 (diff) |
Sat Nov 19 23:14:48 UTC 2011
Diffstat (limited to 'staging/ypserv/yppasswd')
-rwxr-xr-x | staging/ypserv/yppasswd | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/staging/ypserv/yppasswd b/staging/ypserv/yppasswd new file mode 100755 index 000000000..c2b00b2ca --- /dev/null +++ b/staging/ypserv/yppasswd @@ -0,0 +1,34 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + stat_busy "Starting NIS Password Daemon" + /usr/sbin/rpc.yppasswdd + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon yppasswd + stat_done + fi + ;; + stop) + stat_busy "Stopping NIS Password Daemon" + killall -q /usr/sbin/rpc.yppasswdd + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon yppasswd + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac |