On Wed, Oct 01, 2003 at 07:18:46PM +0200, Christian Schmidt wrote: > Heino Tiedemann schrieb/wrote: > > Und ein schnelles Ein/und Ausschlaten (oder deaktivieren) w�re auch > > Die Start/Dtop-Skripte liegen auf Debian-Systemen im Verzeichnis > /etc/init.d. Zum Stoppen eines Dienstes rufst Du das entsprechende > Skript mit dem Argument "stop" auf.
Und wenn Dir das zu umst�ndlich ist:
#! /bin/bash
CMD=$(basename $0)
RC=${1:?}
RCFILE=/etc/init.d/$RC
if test "$1" = "--install"; then
cd $(dirname $0) || exit
echo -n "Installing symlinks... "
for p in start stop restart reload force-reload status; do
test "$CMD" = "$p" && continue
echo -n "$p "
ln -sf $CMD $p
done
echo " ok"
exit
fi
test -x $RCFILE || {
echo "$CMD: $RC ($RCFILE) not executable." >&2
exit 1
}
echo "running $RCFILE $CMD..." >&2
$RCFILE $CMD || echo "returned $?"
Als 'start' irgendwo (in den Pfad) hinlegen.
Dann start --install
aufrufen, damit's auch onoch als stop, restart, reload, force-reload,
status daliegt.
Und dann kannst Du fortan:
stop networking
stop inetd
start inetd
usw usf schreiben
Best regards from Dresden
Viele Gruesse aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ------------------ internet & unix support -
<a href="http://debian.schlittermann.de/"> Debian 3.x CD </a>
Heiko Schlittermann HS12-RIPE -------------------------------
pgp: A1 7D F6 7B 69 73 48 35 E1 DE 21 A7 A8 9A 77 92 -------
gpg: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B -----
pgp00000.pgp
Description: PGP signature

