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

Re: SHEL - Konsole wieder haben



Am 26.10.07 schrieb Reinhold Plew <Reinhold.Plew@aedon-its.de>:
> 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?

Von der ich /folder/script start
started...
mache

-- 
Best Regards
Vlad Vorobiev
http://www.mymir.org

Reply to: