Removed "functions" library which does not exist on some linux distros

This commit is contained in:
Stefan Ritt 2016-09-21 17:22:39 +02:00
parent d9c9ceffee
commit 559dca3bd8
2 changed files with 9 additions and 9 deletions

View File

@ -6,9 +6,6 @@
# config: /usr/local/elog/elogd.cfg
# pidfile: /var/run/elogd.pid
# Source function library.
# . /etc/rc.d/init.d/functions
# Check for the config file
if [ ! -f /usr/local/elog/elogd.cfg ]; then
exit 0
@ -33,9 +30,12 @@ case "$1" in
echo -n "Starting elogd: "
/usr/local/sbin/elogd -D -c /usr/local/elog/elogd.cfg > /dev/null 2>&1
RETVAL=$?
if [ $RETVAL -eq 0 ] ; then
touch /var/lock/subsys/elogd
fi
if [ $RETVAL -eq 0 ] ; then
touch /var/lock/subsys/elogd
echo_success
else
echo_failure
fi
echo
;;
stop)

View File

@ -6,9 +6,6 @@
# config: @PREFIX@/elog/elogd.cfg
# pidfile: /var/run/elogd.pid
# Source function library.
# . /etc/rc.d/init.d/functions
# Check for the config file
if [ ! -f @PREFIX@/elog/elogd.cfg ]; then
exit 0
@ -35,6 +32,9 @@ case "$1" in
RETVAL=$?
if [ $RETVAL -eq 0 ] ; then
touch /var/lock/subsys/elogd
echo_success
else
echo_failure
fi
echo
;;