projects
/
12.09
/
packages.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
branch Attitude Adjustment packages
[12.09/packages.git]
/
net
/
dhcp-forwarder
/
files
/
dhcp-fwd.init
1
#!/bin/sh /etc/rc.common
2
3
START=50
4
5
LOG_D=/var/log
6
RUN_D=/var/run
7
PID_F=$RUN_D/dhcp-fwd.pid
8
9
start() {
10
[ -d $LOG_D ] || mkdir -p $LOG_D
11
[ -d $RUN_D ] || mkdir -p $RUN_D
12
dhcp-fwd
13
}
14
15
stop() {
16
[ -f $PID_F ] && kill $(cat $PID_F)
17
}