mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 20:31:59 +01:00
removed pilergetd init script
This commit is contained in:
parent
b43507bb61
commit
89bb9ae551
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user