Re: update command for xinetd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux