]> git.pld-linux.org Git - packages/dhcp.git/blob - dhcp-relay.init
*** empty log message ***
[packages/dhcp.git] / dhcp-relay.init
1 #!/bin/sh
2 # DHCP Server
3 #
4 # chkconfig: 345 80 20
5 # description: DHCP Relay
6
7 # Source function library.
8 . /etc/rc.d/init.d/functions
9
10 if [ -f /etc/sysconfig/dhcrelay ]; then
11         . /etc/sysconfig/dhcrelay
12 else
13         exit 0
14 fi
15
16
17 # See how we were called.
18 case "$1" in
19   start)
20         show Starting DHCP Relay
21         daemon dhcrelay $SERVER
22         touch /var/lock/subsys/dhcrelay
23         ;;
24   stop)
25         show Stopping DHCP Relay
26         killproc dhrelay
27         rm -f /var/lock/subsys/dhcrelay
28         ;;
29   restart)
30         $0 stop
31         $0 start
32         ;;
33   status)
34         status dhcpd
35         ;;
36   *)
37         echo "Usage: $0 {start|stop|restart|status}"
38         exit 1
39 esac
40
41 exit 0
42
This page took 0.161509 seconds and 4 git commands to generate.