mirror of
git://git.yoctoproject.org/poky
synced 2026-09-16 08:06:50 +00:00
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1175 311d38ba-8fff-0310-9ca6-ca027cbcb966
29 lines
407 B
Bash
29 lines
407 B
Bash
#!/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
|