<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Živjo.<br>
<br>
Če v restart delu $0 zamenjas z: sh ime_skripte.sh, potem pa deluje.<br>
<br>
LP<br>
<br>
Tomaz Kravcar wrote:
<blockquote cite="mid427F9149.4000706@rsklan.com" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Pozdravljeni,
<br>
<br>
zanima me kaj moram narediti da mi bo delal ukaz restart pri
<br>
sledeci bash skripti. Trenutno prekine izvajanje skripte po
<br>
ukazu "$0 stop || true".
<br>
<br>
case "$1" in
<br>
start)
<br>
cd /dl/mldonkey
<br>
rm <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>dl/mldonkey<span
class="moz-txt-tag">/</span></i>*.tmp 2> /dev/null || true
<br>
rm -rf servers.ini* 2> /dev/null || true
<br>
echo "Starting mlnet server"
<br>
su mlnet -s /bin/bash -c "./mlnet -daemon &> /dev/null"
<br>
;;
<br>
stop)
<br>
killall -9 mlnet
<br>
;;
<br>
restart)
<br>
$0 stop || true
<br>
sleep 3
<br>
$0 start
<br>
;;
<br>
*)
<br>
esac</blockquote>
<br>
</body>
</html>