[haiku-bugs] Re: [Haiku] #12638: I'm using launch_daemon to start an application at boot, but I can no longer properly reboot or shutdown Haiku

  • From: "Giova84" <trac@xxxxxxxxxxxx>
  • Date: Fri, 05 Feb 2016 14:14:22 -0000

#12638: I'm using launch_daemon to start an application at boot, but I can no
longer properly reboot or shutdown Haiku
-------------------------------------+----------------------------
   Reporter:  Giova84                |      Owner:  axeld
       Type:  bug                    |     Status:  new
   Priority:  normal                 |  Milestone:  Unscheduled
  Component:  Servers/launch_daemon  |    Version:  R1/Development
 Resolution:                         |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  x86
-------------------------------------+----------------------------

Comment (by Giova84):

 I partially solved launching polipo in this way:


 {{{
         job system-proxy {
                 launch /system/bin/polipo logFile="/var/log/polipo.log"
         }
 }}}


 (I add the log file to investigate about the issue, unfortunately without
 any hints)

 It still hangs at reboot/shutdown, but now, If i send a kill signal to
 polipo


 {{{
 ~> kill polipo
 }}}


 Is properly quitted and no longer hangs at reboot/shutdown (previously,
 when I attempted to kill polipo, it was immediately restarted).

 However: I also running polipo on Linux, and sometimes (eg when I apply
 changes to polipo's config files - or when I add some site to block inside
 the "forbidden file") I do a


 {{{
  ~> sudo /etc/init.d/polipo restart
 }}}


 Which quit and immediately restart polipo.

 With the first method on Haiku (the method which prevents to definitively
 quit polipo), the following:


 {{{
 service x-vnd.Polipo-Proxy {
                 launch /bin/polipo
                 no_safemode
         }
 }}}


 When I send a kill signal to Polipo, it exactly acts as on Linux using
 init.d .
 The fact is that the above method which I used firstly, was the most
 practical to administrate polipo. Maybe there is a proper way or some
 options/commands to avoid the hangs at reboot/shutdown?

--
Ticket URL: <https://dev.haiku-os.org/ticket/12638#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: