aboutsummaryrefslogtreecommitdiffstats
path: root/meta-extras/packages/dhcdbd/files/dhcdbd
blob: 568753c28c7e45f86f9e394b59bf4b9b0e7eeb9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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