update command for xinetd

Alexander Dalloz ad+lists at uni-x.org
Tue Apr 12 15:57:52 UTC 2005


Am Di, den 12.04.2005 schrieb bruce um 16:42:

> ps...
> 
> here's the script i'm reviewing...
> ------------------------------------
> set -e
> 
> if [ $(id -u) != 0 ] ; then
>     echo "You must be root to run this, please enter passwd"
>     exec su -c "$0 $1"
> fi
> 
> case "$1" in
>     configure)
>         echo "Modifying inetd for Subversion server"
>         # First, dedupe the commented lines
>         update-inetd --remove  "svnserve stream tcp nowait.400 gforge_scm
> /usr/bin/svnserve svnserve -i -r /var/lib/gforge/chroot/svnroot" || true
>         update-inetd --add  "svnserve stream tcp nowait.400 gforge_scm
> /usr/bin/svnserve svnserve -i -r /var/lib/gforge/chroot/svnroot"
>         /usr/lib/gforge/plugins/scmsvn/bin/install-viewcvs.sh
>         ;;
> 
>     purge)
>         update-inetd --remove  "svnserve stream tcp nowait.400 gforge_scm
> /usr/bin/svnserve svnserve -i -r /var/lib/gforge/chroot/svnroot"
>         ;;
> 
>     *)
>         echo "Usage: $0 {configure|purge}"
>         exit 1
> -------------------------------------------------------------
> so, the question is how to replace, or find something similar to the
> 'update-inetd' shell app.
> 
> thanks
> 
> bruce

Please avoid top-posting.

I think you got the answer already: "chkconfig" and "service xinetd
reload" are the tools/commands you need on Fedora.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.14_FC2smp 
Serendipity 17:56:10 up 14:36, 18 users, 1.30, 0.87, 0.65 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050412/a63978bb/attachment-0001.sig>


More information about the fedora-list mailing list