diff options
Diffstat (limited to 'recipes/dhcdbd/files/dhcdbd')
-rwxr-xr-x | recipes/dhcdbd/files/dhcdbd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes/dhcdbd/files/dhcdbd b/recipes/dhcdbd/files/dhcdbd new file mode 100755 index 0000000000..568753c28c --- /dev/null +++ b/recipes/dhcdbd/files/dhcdbd @@ -0,0 +1,28 @@ +#!/bin/sh +# +# DHCDBD startup script + +. /etc/profile + +case $1 in + 'start') + echo -n "Starting dhcdbd daemon: dhcdbd" + /sbin/dhcdbd --system + echo "." + ;; + + 'stop') + echo -n "Stopping dhcdbd: dhcdbd" + killall `ps |grep /sbin/dhcdbd | grep -v grep | cut "-d " -f2` + echo "." + ;; + + 'restart') + $0 stop + $0 start + ;; + + *) + echo "Usage: $0 { start | stop | restart }" + ;; +esac |