Line
Link Here
|
0 |
-- ez-ipupdate/ez-ipupdate |
0 |
++ ez-ipupdate/ez-ipupdate |
Lines 35-47
Link Here
|
35 |
return 1 |
35 |
return 1 |
36 |
fi |
36 |
fi |
37 |
|
37 |
|
38 |
for dir in /var/run/ez-ipupdate /var/cache/ez-ipupdate; do |
|
|
39 |
checkpath -q -d -m 0750 -o ez-ipupd:ez-ipupd ${dir} |
40 |
done |
41 |
|
42 |
for NAME in ${LIST}; do |
38 |
for NAME in ${LIST}; do |
43 |
local CONFIG="/etc/ez-ipupdate/${NAME}.conf" |
39 |
local CONFIG="/etc/ez-ipupdate/${NAME}.conf" |
44 |
local PIDFILE="/var/run/ez-ipupdate/${NAME}.pid" |
40 |
local PIDFILE="/run/ez-ipupdate/${NAME}.pid" |
45 |
local CACHEFILE="/var/cache/ez-ipupdate/${NAME}.cache" |
41 |
local CACHEFILE="/var/cache/ez-ipupdate/${NAME}.cache" |
46 |
ebegin "Starting ez-ipupdate (${NAME})" |
42 |
ebegin "Starting ez-ipupdate (${NAME})" |
47 |
start-stop-daemon -p "${PIDFILE}" --start --quiet --exec /usr/sbin/ez-ipupdate \ |
43 |
start-stop-daemon -p "${PIDFILE}" --start --quiet --exec /usr/sbin/ez-ipupdate \ |
Lines 53-59
Link Here
|
53 |
|
49 |
|
54 |
stop() { |
50 |
stop() { |
55 |
local PIDFILE NAME |
51 |
local PIDFILE NAME |
56 |
for PIDFILE in /var/run/ez-ipupdate/*.pid; do |
52 |
for PIDFILE in /run/ez-ipupdate/*.pid; do |
57 |
if [ -f "${PIDFILE}" ]; then |
53 |
if [ -f "${PIDFILE}" ]; then |
58 |
NAME="${PIDFILE##*/}" |
54 |
NAME="${PIDFILE##*/}" |
59 |
ebegin "Stopping ez-ipupdate (${NAME%.*})" |
55 |
ebegin "Stopping ez-ipupdate (${NAME%.*})" |