[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Hilfe- & News-Center • Thema anzeigen - CRON-Job zur Prozessüberwachung

CRON-Job zur Prozessüberwachung

Nich immer einfach, aber meist mit aha-Effekt

Moderator: Mike

CRON-Job zur Prozessüberwachung

Beitragvon Balumir » Do Jan 02, 2003 12:00

Hallo Leute,

folgendes Problem:

Ich habe einen Daemon im Hintergrund laufen. Beim Start dieses Daemons wird eine Zeile mit einer Versionsinfo ausgegeben und der Prozess geht automatisch in den Hintergrund. Dabei wird die PID in einen PID-File geschrieben.

Wenn ich den Start von der Konsole aus mache, muß ich noch ein "Enter" hinterherschicken und bekomme wieder den Prompt.
Soweit so gut.

Nun habe ich ein CRON-Script geschrieben, welches den PID-File prüft. Existiert dieser nicht, soll der Daemon neu gestartet werden. Dies passiert mit:

./engine 2>&1 1>/dev/null

Hierbei kommt nun das Problem. In der Prozesstabelle bleibt ein Zombie von dem CRON-Script zurück. Obwohl der Prozess korrekt gestartet wurde.
Habt Ihr da eine Idee, woher das kommen könnte?

Mit einen "nohup" habe ich es auch schon versucht. -> selbes Ergebnis.

Für Hilfe bin ich Dankbar.

viele Grüße

Frank
Benutzeravatar
Balumir
Administrator
Administrator
 
Beiträge: 350
Registriert: Mo Nov 25, 2002 10:35
Wohnort: Flensdorf

Beitragvon bernd » Do Jan 02, 2003 16:47

moin.

forkt der prozess sich denn auch selbst ab?

evtl. hilft bei dir auch ein

./engine 2>&1 1>/dev/null &

gruss,
Bernd.
Benutzeravatar
bernd
Aktiv
Aktiv
 
Beiträge: 104
Registriert: Do Aug 30, 2001 1:00
Wohnort: Wallsbuell

Beitragvon Balumir » Do Jan 02, 2003 18:40

Benutzeravatar
Balumir
Administrator
Administrator
 
Beiträge: 350
Registriert: Mo Nov 25, 2002 10:35
Wohnort: Flensdorf

Beitragvon steffan » Fr Jan 03, 2003 17:15

steffan
Aktiv
Aktiv
 
Beiträge: 60
Registriert: Sa Sep 01, 2001 1:00

Beitragvon bernd » Fr Jan 03, 2003 19:43

Benutzeravatar
bernd
Aktiv
Aktiv
 
Beiträge: 104
Registriert: Do Aug 30, 2001 1:00
Wohnort: Wallsbuell

Beitragvon steffan » Fr Jan 03, 2003 20:30

steffan
Aktiv
Aktiv
 
Beiträge: 60
Registriert: Sa Sep 01, 2001 1:00

Beitragvon Balumir » Fr Jan 03, 2003 22:53

Benutzeravatar
Balumir
Administrator
Administrator
 
Beiträge: 350
Registriert: Mo Nov 25, 2002 10:35
Wohnort: Flensdorf

Beitragvon steffan » Sa Jan 04, 2003 16:02

steffan
Aktiv
Aktiv
 
Beiträge: 60
Registriert: Sa Sep 01, 2001 1:00

Beitragvon Balumir » Mo Jan 06, 2003 22:17

Benutzeravatar
Balumir
Administrator
Administrator
 
Beiträge: 350
Registriert: Mo Nov 25, 2002 10:35
Wohnort: Flensdorf


Zurück zu Installation

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast

cron