Skip to content

Commit

Permalink
* Fixed an issue with the gentoo init scripts: Process always in cras…
Browse files Browse the repository at this point in the history
…hed status
  • Loading branch information
blackcobra1973 committed Aug 26, 2014
1 parent 6c890cc commit 093ad56
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
26 changes: 14 additions & 12 deletions src/init.d/vpoller-proxy.gentoo
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ checkconfig() {
start() {
checkconfig || return 1

ebegin "Starting ${DESC}"
if [ ! -d ${CONF_DIR} ]; then
eend 1 "${CONF_DIR} does not exist"
return 1
fi
if [ ! -f ${CONF_FILE} ]; then
eend 1 "${CONF_FILE} does not exist"
return 1
fi
ebegin "Starting ${DESC}"
if [ ! -d ${CONF_DIR} ]; then
eend 1 "${CONF_DIR} does not exist"
return 1
fi
if [ ! -f ${CONF_FILE} ]; then
eend 1 "${CONF_FILE} does not exist"
return 1
fi
# if [ -f ${PID_FILE} ]; then
# rm ${PID_FILE}
# fi
Expand All @@ -51,9 +51,11 @@ start() {
}

stop() {
ebegin "Stopping ${DESC}"
${DAEMON} -e ${MGMT_INTERFACE} stop >/dev/null 2>&1
eend
ebegin "Stopping ${DESC}"
# ${DAEMON} -e ${MGMT_INTERFACE} stop >/dev/null 2>&1
start-stop-daemon --stop --pidfile ${PID_FILE}
eend $?

}

fullstatus() {
Expand Down
25 changes: 13 additions & 12 deletions src/init.d/vpoller-worker.gentoo
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ checkconfig() {
start() {
checkconfig || return 1

ebegin "Starting ${DESC}"
if [ ! -d ${CONF_DIR} ]; then
eend 1 "${CONF_DIR} does not exist"
return 1
fi
if [ ! -f ${CONF_FILE} ]; then
eend 1 "${CONF_FILE} does not exist"
return 1
fi
ebegin "Starting ${DESC}"
if [ ! -d ${CONF_DIR} ]; then
eend 1 "${CONF_DIR} does not exist"
return 1
fi
if [ ! -f ${CONF_FILE} ]; then
eend 1 "${CONF_FILE} does not exist"
return 1
fi
# if [ -f ${PID_FILE} ]; then
# rm ${PID_FILE}
# fi
Expand All @@ -53,9 +53,10 @@ start() {
}

stop() {
ebegin "Stopping ${DESC}"
${DAEMON} -e ${MGMT_INTERFACE} stop >/dev/null 2>&1
eend
ebegin "Stopping ${DESC}"
# ${DAEMON} -e ${MGMT_INTERFACE} stop >/dev/null 2>&1
start-stop-daemon --stop --pidfile ${PID_FILE}
eend
}

fullstatus() {
Expand Down

0 comments on commit 093ad56

Please sign in to comment.