blob: b23298be6cb29611fc98cec0717af843fdd08067 (
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
29
30
31
|
#!/bin/sh
#RCUPDATE:3 4:71:This line is required for script management
source /etc/rc.d/config/functions
SERVICE=dhcpd
opts="start stop restart"
EXE=/usr/sbin/dhcpd
start() {
ebegin "Starting $SERVICE"
start-stop-daemon --start --quiet --exec $EXE -- eth0
eend $? "Started $SERVICE." "Error Starting $SERVICE."
}
stop() {
ebegin "Stopping $SERVICE"
start-stop-daemon --stop --quiet --exec $EXE
eend $? "Stopped $SERVICE." "Error Stopping $SERVICE."
}
restart() {
stop
start
}
doservice ${@}
|