[linux] sysinit (specialne rh6.0)

Tibor Pittich Tibor.Pittich na phuture.sk
Úterý Červenec 6 09:09:32 CEST 1999


-----BEGIN PGP SIGNED MESSAGE-----

Dňa Ut, 06 júl 1999 Lubos Klokner napísal(a):
>potom som zistil ze by som mohol si spravit script podla
>tych co su v /etc/rc.d/init.d
>a tak som spravil nieco taketo
[snip]
hmm.. ja mam yeniove rpmko a tam je rc script takyto..
#!/bin/sh
#
# chkconfig: 345 55 45
# description: sshd (secure shell daemon) is a server part of the ssh suite.
#       Ssh can be used for remote login, remote file copying, TCP port
#       forwarding etc. Ssh offers strong encryption and authentication.
#

# Source function library.
.. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
        echo -n "Starting sshd: "
        if test -r /var/run/sshd.pid && kill -0 `cat /var/run/sshd.pid`
        then echo "already running according to /var/run/sshd.pid. Not started."
        else /usr/sbin/sshd
                echo sshd
        fi
        touch /var/lock/subsys/sshd
        ;;
  stop)
        echo -n "Stopping sshd: "
        [ -f /var/run/sshd.pid ] || exit 0
        kill -TERM `cat /var/run/sshd.pid`
        rm -f /var/run/sshd.pid
        rm -f /var/lock/subsys/sshd
        echo "sshd"
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  status)
        status sshd
        ;;
  *)
        echo "Usage: $0 {start|stop|restart|status}"
        exit 1
esac

exit 0

pardon ze to sem pastujem cele, ale snad sa to zide aj niekomu inemu..

>taktiez nerozumiem ako mam potom pridat linku na tento
>script do /etc/rc.d/rcX.d
>su tam linky s 'S' alebo 'K' na zaciatku a s nejakym cislom
>(S50xfs...)
no, co sa tyka tych liniek, tak je nasledovne logika...
scripty zacinajuce K sa spustaju ked sa prechadza z ineho init levelu do
aktualneho... potom sa spustaju tie ktore su oznacene ako S.. kill a start..
cisla.. to je potom asi jasne.. poradie spustania tych scriptov..

S pozdravom
--
+------------------------+------------------------------------------------+
+ Tibor "FuturE" Pittich | Email       : Tibor.Pittich na phuture.sk
+------------------------+ HomePage    : http://c0re.phuture.sk/future
          PGPkey v5.0i: pgpk -a finger://c0re.phuture.sk/future
               IRC (IRCnet): FuturE (server irc.napri.sk)
+-------------------------> píšte mi v ISO-8859-2 <-----------------------+

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: 5aFsQEFTEIm1DJJosT9GYr4aMJRNG+M+

iQA/AwUAN4GtYqMtXFcRSJyjEQIXEQCgye/eW17Vt7BBzh5tNBk5w+QFtWQAoNVG
G2LiVGCrdfME1pVYHS1/KlMp
=E3UZ
-----END PGP SIGNATURE-----



Další informace o konferenci linux