sysvinit scripts

This commit is contained in:
Smaine Kahlouch
2016-01-04 14:24:29 +01:00
parent 6103d673b7
commit d172457504
5 changed files with 262 additions and 40 deletions

View File

@@ -39,13 +39,6 @@ DAEMON_USER=root
#
do_start()
{
# Avoid a potential race at boot time when both monit and init.d start
# the same service
PIDS=$(pidof $DAEMON)
for PID in ${PIDS}; do
kill -9 $PID
done
# Return
# 0 if daemon has been started
# 1 if daemon was already running