Hallo,
zum einen wäre diese zeile besser:
Code:
/opt/sbin/thttpd restart -C /opt/etc/thttpd.conf
als
Code:
/opt/sbin/thttpd -C /opt/etc/thttpd.conf
weil somit auch automatisch der alto Prozess beendet wird.
Aber eigtnlich wollte ich dich auf die Suche hinweisen.
Ich weiß, dass schoneinmal jemand genau solch ein Script geschrieben hat, weil er das gleiche Problem hatte.
Suche doch einfachmal, das erspart dir bestimmt ne Menge arbeit.
(PS. poste doch dann hier mal den Link auf das entspr. Thema, ich habe nämlich das gleiche Problem, war bisher aber zu faul)