Commit Graph

14 Commits

Author SHA1 Message Date
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
Domin6
543c89c24b Change copyright and FSF address, this fixes #252 2012-02-29 13:36:32 +01:00
Stephan Raue
bc71bc1ef9 Revert "atvclient: start init scripts on RUNLEVEL=boot"
This reverts commit 9c236f8331.
2011-09-12 19:25:02 +02:00
Stephan Raue
5bab81f7da Revert "atvclient: shutdown atvclient on reboot/poweroff"
This reverts commit 08c725ab42.
2011-09-12 19:18:18 +02:00
Stephan Raue
08c725ab42 atvclient: shutdown atvclient on reboot/poweroff
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2011-09-08 04:25:40 +02:00
Stephan Raue
9c236f8331 atvclient: start init scripts on RUNLEVEL=boot
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2011-09-07 23:12:56 +02:00
Stephan Raue
0ce4069815 config/sources: rename $OPENELEC_SRC to $DISTRO_SRC
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2011-08-16 07:14:42 +02:00
Stephan Raue
b264d2c9ad atvclient: move init script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2011-01-13 01:14:43 +01:00
Stephan Raue
03fd0178a2 atvclient: add license headers
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2011-01-09 18:42:04 +01:00
Stephan Raue
0d6abbdaf7 atvclient: simplyfing OpenELEC download url
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2010-12-17 01:03:34 +01:00
Stephan Raue
c6ffda035e atvclient: add autoreconf support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2010-11-25 18:15:07 +01:00
Stephan Raue
ce94024527 atvutils: rename patches
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2010-11-14 14:43:12 +01:00
Stephan Raue
34c5d024cc atvclient: starting in background
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2010-10-09 19:40:05 +02:00
Stephan Raue
9180af8c56 new package: add initial package 'atvclient'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2010-10-09 16:57:02 +02:00