projects
/
packages.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
port lots of init scripts over to rc.common (more to come)
[packages.git]
/
net
/
vrrpd
/
files
/
vrrpd.init
1
#!/bin/sh /etc/rc.common
2
# Copyright (C) 2006 OpenWrt.org
3
4
BIN=vrrpd
5
DEFAULT=/etc/default/$BIN
6
[ -f $DEFAULT ] && . $DEFAULT
7
RUN_D=/var/run
8
PID_F=$RUN_D/$BIN_${IF}_${ID}.pid
9
10
start() {
11
$BIN $OPTIONS
12
}
13
14
stop() {
15
[ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1
16
}
17