diff options
author | root <root@rshg054.dnsready.net> | 2012-02-27 23:15:24 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-27 23:15:24 +0000 |
commit | 1f567a9d58d16b76320168f0624aa55bd6320284 (patch) | |
tree | e4e7ffadc364d582fccd8543ad1543fa9741a8a7 /testing/ypserv/yppasswd | |
parent | f6a79a3f5989efc8db63af942851c56f0c462bb1 (diff) |
Mon Feb 27 23:15:24 UTC 2012
Diffstat (limited to 'testing/ypserv/yppasswd')
-rwxr-xr-x | testing/ypserv/yppasswd | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/ypserv/yppasswd b/testing/ypserv/yppasswd new file mode 100755 index 000000000..c2b00b2ca --- /dev/null +++ b/testing/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 |