[Setup] Plone 2.5.2 Unified Installer (Kamal Gill) :small addition: a better startscript

Klaus Lehmann lehmann_klaus at t-online.de
Mon Mar 12 13:48:09 UTC 2007


hi there....
I'm working with webmin, and this could also be usefull for plain
linux. 
Here's an addition to start_script (/etc/init.d/zope)
(my basic ist opensuse10.0 on x86; I don't know deeper into Redhat or
others :-(   )


in /etc/init.d/zope
Kamal(?) wrote this basic script, You can do one addition on it:

PATH=/bin:/usr/bin:/sbin:/usr/sbin
STARTCLUSTER="/opt/Plone-2.5.2/zeocluster/bin/startcluster.sh"
SHUTDOWNCLUSTER="/opt/Plone-2.5.2/zeocluster/bin/shutdowncluster.sh"
STATUSCLUSTER="/opt/Plone-2.5.2/zeocluster/bin/statuscluster.sh"
RESTARTCLUSTER="/opt/Plone-2.5.2/zeocluster/bin/restartcluster.sh"
USER="plone"

case "$1" in
'start')
$STARTCLUSTER -u $USER
;;
'stop')
$SHUTDOWNCLUSTER -u $USER stop
;;
'status')
$STATUSCLUSTER -u $USER status
;;
'restart')
$RESTARTCLUSTER -u $USER restart                                       
  
;;
*)
echo "Usage: $0 {start | stop | status | restart}"
;;
esac
exit 0            

..and somthing more else....


and main_addition:

/opt/Plone-2.5.2/zeocluster/bin/statuscluster.sh
looks like this:
#!/bin/sh
#
# ZEO cluster restart script
#
echo 'Status ZEO server...'
/opt/Plone-2.5.2/zeocluster/server/bin/zeoctl status
sleep 1
echo 'Status ZEO client1...'
/opt/Plone-2.5.2/zeocluster/client1/bin/zopectl status
sleep 1
echo 'Status ZEO client2...'
/opt/Plone-2.5.2/zeocluster/client2/bin/zopectl status


and, it works with webmin    ;-)

                       


yours
klaus
                                             !

-- 
Klaus Lehmann
eMail: lehmann_klaus at t-online.de
phone/fax: 03528-452 807/809; mobil 0171-953 7843
adress: D-01454 Radeberg; Kleinwolmsdorfer Str. 37

Mitglied: Gewerbeverein und IHK Dresden seit 2005
Neue Werkstatt- und Geschäftsräume seit 30.1.2006
Neues Portal für allegronet.de seit dem 22.6.2006
***  mit MessageBoard für alle Interessierten ***

***   Ihre langjährige allegroC-Werkstatt:    ***
               http://allegronet.de              
   Internetkataloge & WebHosting für AllegroC
Fremddaten: Import/Export; Netware/Windows/Linux
***     Our best ideas are born at home       ***
        (New Freedom Data Center 1995)           
*** Stand mit BOWKER auf dem 3. Leipziger Kongreß 
    für Information und Bibliothek vom 19. bis 21. März 2007
*** Firmenvortrag: Internetpräsenz mit Zope&Plone - 
    allegronet.de stellt Möglichkeiten für Bibliotheken 
    und Archive vor. Am 20.3.2007, um 12:00 - 13:00, 
    in Saal 4 (für 194 Pers.)




More information about the Setup mailing list