mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Removed "functions" library which does not exist on some linux distros
This commit is contained in:
parent
d9c9ceffee
commit
559dca3bd8
12
elogd.init
12
elogd.init
@ -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)
|
||||
|
||||
@ -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
|
||||
;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user