Hi Jan,
here an initd script for
SUSE Linux Enterprise Server 11 (x86_64) should also work for other SuSE
releases:
#! /bin/sh
# Copyright (c) 2006 Frank Hinterland
#
#
# /etc/init.d/gnugk
#
### BEGIN INIT INFO
# Provides: gnugk
# Required-Start: $local_fs $network
# X-UnitedLinux-Should-Start: $time mysql
# Required-Stop: $local_fs $network
# X-UnitedLinux-Should-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: GnuGatekeeper
# Description: Start the gnugk
### END INIT INFO
. /etc/rc.status
rc_reset
# The echo return value for success (defined in /etc/rc.config).
return=$rc_done
case "$1" in
start)
echo -n "Starting GNU Gatekeeper"
## Start daemon with startproc(8). If this fails
## the echo return value is set appropriate.
startproc -q /opt/bin/gnugk -u gnugk -c /etc/gnugk.ini ||
return=$rc_failed
echo -e "$return"
;;
stop)
echo -n "Shutting down GNU Gatekeeper"
## Stop daemon with killproc(8) and if this fails
## set echo the echo return value.
killproc -TERM /opt/bin/gnugk -u gnugk -c /etc/gnugk.ini ||
return=$rc_failed
echo -e "$return"
;;
restart)
## If first returns OK call the second, if first or
## second command fails, set echo return value.
$0 stop && $0 start || return=$rc_failed
;;
reload)
$0 stop && $0 start || return=$rc_failed
;;
status)
echo -n "Checking for GNU Gatekeeper: "
## Check status with checkproc(8), if process is running
## checkproc will return with exit status 0.
checkproc /opt/bin/gnugk -u gnugk -c /etc/gnugk.ini && echo OK
|| echo No process
;;
*)
echo "Usage: $0 {start|stop|status|restart|reload}"
exit 1
;;
esac
# Inform the caller not only verbosely and set an exit status.
test "$return" = "$rc_done" || exit 1
exit 0
Regards,
frank
Am 28.07.2011 08:50, schrieb Jan Willamowius:
> Hi,
>
> to start GnuGk on Unix automatically when the server starts, one needs
> an initd script which is even different for most Linux distributions and
> the details of these scripts change rather frequently.
>
> GnuGk only ships a few example scripts (gk.initd.*) for distributions
> which are mostly outdated by now. I would like to collect new initd
> scripts from the community to include in the next release.
>
> If you have written an initd script, please mail it to me and please
> let me know which distribution is works on.
>
> Thanks!
>
> Jan
>
--
Frank Hinterland
Computing Center Garching
Max-Planck-Gesellschaft &
Max-Planck-Institut für Plasmaphysik
Boltzmannstr. 2, D2 building
D 85748 Garching, Germany
Mail : [email protected]
Internet: www.rzg.mpg.de
fon +49(0)89-3299-1573
fax +49(0)89-3299-1555
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________________
Posting: mailto:[email protected]
Archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/