From 89bb9ae5513b54ed88b051c69329e4071a9a7c7b Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 11 Nov 2014 15:00:35 +0100 Subject: [PATCH] removed pilergetd init script --- init.d/Makefile.in | 4 +-- init.d/rc.pilergetd.in | 64 ------------------------------------------ 2 files changed, 1 insertion(+), 67 deletions(-) delete mode 100644 init.d/rc.pilergetd.in diff --git a/init.d/Makefile.in b/init.d/Makefile.in index 8ea2e931..e3c7fa2f 100644 --- a/init.d/Makefile.in +++ b/init.d/Makefile.in @@ -24,17 +24,15 @@ INSTALL = @INSTALL@ all: sed -e "s%SBINDIR%$(sbindir)%" -e "s%SYSCONFDIR%$(sysconfdir)%" $(srcdir)/rc.piler.in > $(srcdir)/rc.piler - sed -e "s%SBINDIR%$(sbindir)%" -e "s%SYSCONFDIR%$(sysconfdir)%" $(srcdir)/rc.pilergetd.in > $(srcdir)/rc.pilergetd sed -e "s%BINDIR%$(bindir)%" -e "s%SYSCONFDIR%$(sysconfdir)%" $(srcdir)/rc.searchd.in > $(srcdir)/rc.searchd install: $(INSTALL) -m 0755 $(srcdir)/rc.piler $(DESTDIR)/etc/init.d/rc.piler - $(INSTALL) -m 0755 $(srcdir)/rc.pilergetd $(DESTDIR)/etc/init.d/rc.pilergetd $(INSTALL) -m 0755 $(srcdir)/rc.searchd $(DESTDIR)/etc/init.d/rc.searchd clean: - rm -f rc.piler rc.pilergetd rc.searchd + rm -f rc.piler rc.searchd distclean: clean rm -f Makefile diff --git a/init.d/rc.pilergetd.in b/init.d/rc.pilergetd.in deleted file mode 100644 index 56143b30..00000000 --- a/init.d/rc.pilergetd.in +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh -## -## - -### BEGIN INIT INFO -# Provides: pilergetd -# Required-Start: $remote_fs $syslog $named $network $time mysql -# Required-Stop: $remote_fs $syslog $named $network mysql -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: pilergetd daemon -# Description: pilergetd daemon for remote access -### END INIT INFO - -NAME=pilergetd -PID_FILE=`SBINDIR/pilerconf -q pilergetd_pidfile | cut -f2 -d=` -PID_NUMBER=`test -f ${PID_FILE} && cat ${PID_FILE}` - -start() { - echo "starting $NAME . . ." - SBINDIR/pilergetd -d -} - -stop() { - echo "stopping $NAME" - kill ${PID_NUMBER} -} - -check_status(){ - test -f /proc/${PID_NUMBER}/status -} - -case "$1" in - start) - start; - ;; - - stop) - stop; - ;; - - status) - if check_status; - then - echo "${NAME} is running." - else - echo "${NAME} is not running." - fi - ;; - - restart) - stop; - sleep 1; - start; - ;; - - reload) - kill -HUP $PID_NUMBER - ;; - - *) - echo "Usage: $0 start|stop|restart|reload|status" -esac -