spustanie skriptu pri starte
Vaclav Dvorsky
hufhendr na sendmail.cz
Pátek Červen 13 20:07:24 CEST 2003
coffey napsal(a):
> ako sa nastavi autamaticke spustanie nejakeho skriptu pri starte systemu?
>
Jednim z moznych reseni je soubor rc.local
napr. cat /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
rm -r /etc/mrtg/temperature.pid
mrtg /etc/mrtg/temperature.cfg
rm -r /home/httpd/.smokeping/var/smokeping.pid
perl /usr/local/smokeping-1.16/bin/smokeping
--
Vaclav Dvorsky
http://www.akira.cz
emajl: hufhendr na sendmail.cz, iso-8859-2
tel: +420608021530, PGP: 0xD38E2CA7, X.509 supported
Další informace o konferenci Linux