the_viper
Bekanntes Mitglied
- Dabei seit
- 27.11.2000
- Beiträge
- 1.977
- Reaktionspunkte
- 0
hab kleine Differenzen mit Perl heute...
Ich soll ein Skript auf unserem Server anpassen, so das nach einer bestimmten Aktion Apache neu gestartet wird. Dazu hab ich folgendes eingefügt :
./apache restart mag der nicht, da kommen angebliche Config Fehler, deswegen stoppe und starte ich den neu.
nur kommt dabei nur seltsames raus!
folgendes krieg ich nämlich im log :
Wo steckt mein Fehler? Muß dabei sagen das ich von Perl keine Ahnung ab, programmieren ist aber sonst kein Problem.
Ich soll ein Skript auf unserem Server anpassen, so das nach einer bestimmten Aktion Apache neu gestartet wird. Dazu hab ich folgendes eingefügt :
Code:
system("bash /usr/apache_29/bin/apachectl stop") and die $!;
system("bash /usr/apache_29/bin/apachectl start") and die $!;
./apache restart mag der nicht, da kommen angebliche Config Fehler, deswegen stoppe und starte ich den neu.
nur kommt dabei nur seltsames raus!
folgendes krieg ich nämlich im log :
Code:
:/usr/local/ezad/bin/cron# ./Nacht.pl2
/usr/apache_29/bin/apachectl stop: httpd stopped
cat: /var/run/httpd.pid: No such file or directory
/usr/apache_29/bin/apachectl start: httpd started
/usr/apache_29/bin/apachectl stop: httpd stopped
/usr/apache_29/bin/apachectl start: httpd (pid 12058) already running
/usr/apache_29/bin/apachectl stop: httpd stopped
/usr/apache_29/bin/apachectl start: httpd (pid 12058) already running
/usr/apache_29/bin/apachectl stop: httpd stopped
/usr/apache_29/bin/apachectl start: httpd (pid 12058) already running
/usr/apache_29/bin/apachectl stop: httpd stopped
/usr/apache_29/bin/apachectl start: httpd (pid 12058) already running
/usr/apache_29/bin/apachectl stop: httpd stopped
/usr/apache_29/bin/apachectl start: httpd (pid 12058) already running
/usr/apache_29/bin/apachectl stop: httpd stopped
/usr/apache_29/bin/apachectl start: httpd (pid 12058) already running
/usr/apache_29/bin/apachectl stop: httpd stopped
/usr/apache_29/bin/apachectl start: httpd (pid 12058) already running
/usr/apache_29/bin/apachectl stop: httpd stopped
/usr/apache_29/bin/apachectl start: httpd (pid 12058) already running
/usr/apache_29/bin/apachectl stop: httpd stopped
/usr/apache_29/bin/apachectl start: httpd (pid 12058) already running
/usr/apache_29/bin/apachectl stop: httpd stopped
/usr/apache_29/bin/apachectl start: httpd (pid 12058) already running
/usr/apache_29/bin/apachectl stop: httpd stopped
/usr/apache_29/bin/apachectl start: httpd (pid 12058) already running
/usr/apache_29/bin/apachectl stop: httpd stopped
/usr/apache_29/bin/apachectl start: httpd (pid 12058) already running
Wo steckt mein Fehler? Muß dabei sagen das ich von Perl keine Ahnung ab, programmieren ist aber sonst kein Problem.