[sisyphus] init - скрипты, и возвращаемые значения

Artem =?iso-8859-1?q?u2u_=CE=C1_nm=2Eru?=
Вт Ноя 8 11:26:32 MSK 2005


Строка запуска slmodemd :

start-stop-daemon --quiet --start -b -m --pidfile $PIDFILE --exec 
/usr/sbin/slmodemd --
--country=RUSSIA


Мда..  Теперь все понятно:

-b|--background
              Typically  used  with  programs  that don't detach on
their own.
              This option will force start-stop-daemon to fork before
starting
              the  process, and force it into the background.  WARNING:
start-
              stop-daemon cannot check the exit status if the process
fails to
              execute for any reason. This is a last resort, and is only
meant
              for programs that either make no sense forking on their
own,  or
              where  it's  not  feasible  to  add  the  code for it to
do this
              itself.

Именно потому что эта гадина не умеет отсоединяться собственными силами
от терминала..
Видимо, пока ему не воткнуть fork, etc... в одно место - нормальным
демоном он не станет. :-D

Rgds, Artem.




Подробная информация о списке рассылки Sisyphus