Skip to content

Commit

Permalink
* Gentoo init script: Fix issue with status is crashed
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcobra1973 committed Aug 25, 2014
1 parent fc65a23 commit 6c890cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/init.d/vpoller-proxy.gentoo
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

. /etc/init.d/functions.sh
#. /etc/init.d/functions.sh

extra_started_commands="fullstatus"

Expand All @@ -15,6 +15,7 @@ CONF_DIR=/etc/vpoller
CONF_FILE=${CONF_DIR}/vpoller.conf
PID_DIR=/var/run/vpoller
LOG_DIR=/var/log/vpoller
PID_FILE=${PID_DIR}/vpoller-proxy.pid

depend() {
use logger net
Expand All @@ -37,8 +38,12 @@ start() {
eend 1 "${CONF_FILE} does not exist"
return 1
fi
# if [ -f ${PID_FILE} ]; then
# rm ${PID_FILE}
# fi
# $DAEMON -d start >/dev/null 2>&1
start-stop-daemon --start --quiet \
--pidfile "${PID_FILE}" \
--user zabbix --group zabbix \
--exec ${DAEMON} -- \
-d start
Expand Down
6 changes: 6 additions & 0 deletions src/init.d/vpoller-worker.gentoo
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ CONF_DIR=/etc/vpoller
CONF_FILE=${CONF_DIR}/vpoller.conf
PID_DIR=/var/run/vpoller
LOG_DIR=/var/log/vpoller
PID_FILE=${PID_DIR}/vpoller-worker.pid

depend() {
use logger net
Expand All @@ -38,8 +39,13 @@ start() {
eend 1 "${CONF_FILE} does not exist"
return 1
fi
# if [ -f ${PID_FILE} ]; then
# rm ${PID_FILE}
# fi

# $DAEMON -d start >/dev/null 2>&1
start-stop-daemon --start --quiet \
--pidfile "${PID_FILE}" \
--user zabbix --group zabbix \
--exec ${DAEMON} -- \
-d start
Expand Down

0 comments on commit 6c890cc

Please sign in to comment.