[gold-users] Antwort: GOLD init script

RNothdurft at spirit21.de RNothdurft at spirit21.de
Thu Jul 15 07:29:49 MDT 2010


Hi Tavia,

i'm using GOLD on SLES 11 and have rewritten the init script to fit to the 
distro:

#!/bin/bash
#
# gold server    This script will start and stop the GOLD Server
#
### BEGIN INIT INFO
# Provides:       gold
# Required-Start: $syslog $remote_fs
# Should-Start:
# Required-Stop: $syslog $remote_fs
# Should-Stop: $null
# Default-Start:  2 3 5
# Default-Stop:
# Short-Description: GOLD server
# Description: GOLD server is an Allocation Manager and acts much like a 
bank
### END INIT INFO

# Source function library.
#[ -f /etc/rc.d/init.d/functions ] || exit 0
#. /etc/rc.d/init.d/functions
. /etc/rc.status

RETVAL=0
prog="gold"
export GOLD_HOME=/usr/local/gold

PIDFILE=$GOLD_HOME/etc/$prog.pid
LOCKFILE=/var/lock/subsys/$prog

#
# The pathname substitution in daemon command assumes prefix and
# exec_prefix are same.  This is the default, unless the user requests
# otherwise.
#
case "$1" in
    start)
        echo -n "Starting $prog: "
            startproc -u golduser $GOLD_HOME/sbin/goldd >/dev/null
        RETVAL=$?
        #echo
        [ $RETVAL -eq 0 ] && touch $LOCKFILE
        rc_status -v
        ;;
    stop)
        echo -n "Shutting down $prog: "
        $GOLD_HOME/sbin/goldd -k >/dev/null
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        #echo
        rc_status -v
        ;;
    restart)
        $0 stop
        $0 start
        ;;
    status)
        echo -n "Checking for $prog: "
        checkproc -p $PIDFILE $GOLD_HOME/sbin/goldd
        rc_status -v
        RETVAL=$?
        ;;
    *)
        echo "Usage: $0 {start|stop|restart|status}"
        RETVAL=1
        ;;
esac
exit $RETVAL

Kind regards,
Richard


Richard Nothdurft
DHBW-Student der SPIRIT/21 AG
Otto-Lilienthal-Str. 36, 71034 Böblingen
Mobil: 0177/7427024
E-Mail: rnothdurft at spirit21.de
Internet: http://www.spirit21.de




Tavia Stone <tavia.stone at stfc.ac.uk> 
Gesendet von: gold-users-bounces at supercluster.org
15.07.2010 14:48
Bitte antworten an
Gold Users Mailing List <gold-users at supercluster.org>


An
gold-users at supercluster.org
Kopie

Thema
[gold-users] GOLD init script






Building GOLD-2.1.12.2 on SuSE 11.1:

Noticed earlier today that the init script 'gold.d' is not written for use 
with SuSE Linux (SuSE doesn't use /etc/rc.d/init.d/functions). Is there a 
restriction on which Linux distro one can build GOLD on?  I found nothing 
in the User's Guide to suggest this. Do you have an init script written 
for SuSe that was left out of the source distribution?

Thanks,
Tavia
---------------------------------------
Tavia Stone
HPC Systems Administrator
STFC Daresbury Laboratory
Phone: +44 (0)1925 603966
Email: tavia.stone at stfc.ac.uk






_______________________________________________
gold-users mailing list
gold-users at supercluster.org
http://www.supercluster.org/mailman/listinfo/gold-users



SPIRIT/21 AG

Sitz der Gesellschaft: Böblingen
Vorstand: Dietmar Wendt (Vorsitzender), Philipp Steffen, Joachim Gutheil
Vorsitzender des Aufsichtsrates: Siegfried J. Althaus
Registergericht: Amtsgericht Stuttgart, Registernummer: HRB 244681
Umsatzsteuer-Identifikationsnummer: DE 198412560
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/gold-users/attachments/20100715/2e4e8dc4/attachment.html 


More information about the gold-users mailing list