[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SHEL - Konsole wieder haben



Vladislav Vorobiev wrote:
> ok, hab das so gelöst
> 
> export file='//Mai.py'
> export pid='/pid.pid'
> 
> case "$1" in
> 
> start)  log_daemon_msg "Starting"
>         start-stop-daemon --start --quiet --pidfile $pid --name
> mailboxer --startas "/usr/bin/python" -- $file &echo $! >$pid
> 
> #        start-stop-daemon --start --quiet --pidfile /my.pid --name
> mailboxer --startas "/home/vavvav/A/sh/MailBoxerPop.py" -- $LSBN
>         log_end_msg $?
>         ;;
> 
> stop)   log_daemon_msg "Stopping periodic command scheduler" "crond"
>         kill `cat $pid`
>         log_end_msg $?
>         ;;
> 
> Es lässt sich starten und anhalten.
> Das Problem ist wenn ich die Konsole komplett schließe ist auch der Prozess tot.

Auf die Gefahr hin, dass ich mich 'oute', welche Konsole meinst Du?

Reinhold

PS: Dein Quoting ist nicht gerade gut.



Reply to: