Files
Arch-R/packages/sysutils
Dag Wieers 6f41b37996 When init starts daemons through a shell script, replace the shell altogether
A few daemons are being started from init through a shell script. Since the daemon does not "deamonizes" properly, it's been put in the background from the shell by using ( ... ) &, however this leaves a lingering shell that serves no purpose. This patch improves this situation.

The situation before this change looked like:

    init-+-Xorg
         |-avahi-daemon
         |-console-kit-dae-+-62*[{console-kit-da}]
         |                 `-{gdbus}
         |-dbus-daemon
         |-eventlircd
         |-klogd
:        |-init---atvclient
         |-init---connmand
:        |-init---ratpoison
:        |-init---udevadm
         |-polkitd---{gdbus}
         |-rpcbind
         |-sshd---sshd---sh---pstree
         |-syslogd
         |-systemd-udevd
:        |-tvheadend.start---tvheadend---12*[{tvheadend}]
         |-udisks-daemon-+-udisks-daemon
         |               |-{gdbus}
         |               `-{gmain}
         |-upowerd-+-{gdbus}
         |         `-{gmain}
         |-wpa_supplicant
         `-xbmc.bin---17*[{xbmc.bin}]

After this change, it looks like:

    init-+-Xorg
:        |-atvclient
         |-avahi-daemon
         |-console-kit-dae-+-62*[{console-kit-da}]
         |                 `-{gdbus}
         |-dbus-daemon
         |-eventlircd
         |-init---connmand
         |-klogd
         |-polkitd---{gdbus}
:        |-ratpoison
         |-rpcbind
         |-sshd---sshd---sh---pstree
         |-syslogd
         |-systemd-udevd
:        |-tvheadend---12*[{tvheadend}]
:        |-udevadm
         |-udisks-daemon-+-udisks-daemon
         |               |-{gdbus}
         |               `-{gmain}
         |-upowerd-+-{gdbus}
         |         `-{gmain}
         |-wpa_supplicant
         `-xbmc.bin---17*[{xbmc.bin}]

Only for connmand this is not easily done since the shell loops and restarts connmand. In different circumstances /etc/inittab would respawn the process.
2013-02-06 22:16:12 +01:00
..
2013-01-18 22:37:44 +02:00
2013-01-26 19:21:49 +02:00
2012-10-20 19:28:15 +02:00
2012-06-17 13:55:12 +02:00
2012-11-15 11:49:15 +01:00
2012-06-19 19:23:16 +02:00
2012-06-28 12:32:39 +02:00
2013-01-22 21:33:09 +02:00
2012-07-19 22:10:08 +02:00