Tue Jun 5 11:17:33 PDT 2007
- Previous message: [Slony1-commit] slony1-www/content news.txt
- Next message: [Slony1-commit] slony1-engine/redhat postgresql-slony1-engine.spec slony-I.specfile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/redhat
In directory main.slony.info:/tmp/cvs-serv4944
Modified Files:
Tag: REL_1_2_STABLE
slon.init
Log Message:
Add reload() to init script
Index: slon.init
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/redhat/slon.init,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** slon.init 17 May 2007 07:13:55 -0000 1.1.2.1
--- slon.init 5 Jun 2007 18:17:31 -0000 1.1.2.2
***************
*** 10,13 ****
--- 10,15 ----
# v1.0.0 Devrim GUNDUZ <devrim at CommandPrompt.com>
# - Initial version of Red Hat / Fedora init script, based on Ubuntu one.
+ # v1.0.0 Devrim GUNDUZ <devrim at CommandPrompt.com>
+ #Â - Added reload()
if [ -r /etc/sysconfig/slony1 ]; then
***************
*** 49,53 ****
SLONCONF=/etc/slon.conf
SLONPID=/var/run/slon.pid
!
test -x $SLONDAEMON || exit 5
--- 51,55 ----
SLONCONF=/etc/slon.conf
SLONPID=/var/run/slon.pid
! SLONLOG=/var/log/slony1
test -x $SLONDAEMON || exit 5
***************
*** 59,63 ****
echo -n "$SLON_START"
! daemon $SLONDAEMON -f $SLONCONF -p $SLONPID 2>&1 </dev/null &
sleep 2
--- 61,65 ----
echo -n "$SLON_START"
! $SU -l postgres -c "$SLONDAEMON -f $SLONCONF &" >> "$SLONLOG" 2>&1 < /dev/null
sleep 2
***************
*** 94,97 ****
--- 96,110 ----
}
+ reload(){
+ echo -n $"Reloading ${NAME}: "
+ if [ -n "`pidfileofproc $SLONDAEMON`" ] ; then
+ killproc $SLONDAEMON -HUP
+ else
+ failure $"Reloading ${NAME}"
+ fi
+ RETVAL=$?
+ echo
+ }
+
condrestart(){
[ -e /var/lock/subsys/${NAME} ] && restart
***************
*** 111,115 ****
;;
status)
! status postmaster
script_result=$?
;;
--- 124,128 ----
;;
status)
! status slon
script_result=$?
;;
***************
*** 117,120 ****
--- 130,136 ----
restart
;;
+ reload|force-reload)
+ reload
+ ;;
condrestart)
condrestart
***************
*** 124,128 ****
;;
*)
! echo $"Usage: $0 {start|stop|status|restart|condrestart|condstop}"
exit 1
esac
--- 140,144 ----
;;
*)
! echo $"Usage: $0 {start|stop|status|restart|condrestart|condstop|reload|force-reload}"
exit 1
esac
- Previous message: [Slony1-commit] slony1-www/content news.txt
- Next message: [Slony1-commit] slony1-engine/redhat postgresql-slony1-engine.spec slony-I.specfile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list