I need to get dbus and hald working under runit.
I'm using debian etch
I created /etc/sv/hald/run :
Code:
#!/bin/bash
1>&2
exec hald daemon=yes &
but when I go to check status it shows this:
Code:
# sv status hald
down: hald: 0s, normally up, want up
# sv status hald
down: hald: 1s, normally up, want up
# sv status hald
down: hald: 0s, normally up, want up
trying to manually start it:
Code:
# sv start hald
timeout: down: hald: 0s, normally up, want up
It looks like I might be missing something?
Code:
# ls -l /var/service/
total 0
lrwxrwxrwx 1 root root 12 2007-11-12 00:56 gdm -> /etc/sv/gdm/
lrwxrwxrwx 1 root root 15 2007-11-12 00:40 getty-1 -> /etc/sv/getty-1
lrwxrwxrwx 1 root root 15 2007-11-12 00:40 getty-2 -> /etc/sv/getty-2
lrwxrwxrwx 1 root root 15 2007-11-12 00:40 getty-3 -> /etc/sv/getty-3
lrwxrwxrwx 1 root root 15 2007-11-12 00:40 getty-4 -> /etc/sv/getty-4
lrwxrwxrwx 1 root root 15 2007-11-12 00:40 getty-5 -> /etc/sv/getty-5
lrwxrwxrwx 1 root root 13 2007-11-12 01:15 hald -> /etc/sv/hald/
lrwxrwxrwx 1 root root 20 2007-11-12 00:40 socklog-klog -> /etc/sv/socklog-klog
lrwxrwxrwx 1 root root 20 2007-11-12 00:40 socklog-unix -> /etc/sv/socklog-unix
Code:
# ls -l /etc/sv/*
lrwxrwxrwx 1 root root 36 2007-11-12 00:55 /etc/sv/README -> /usr/share/doc/runit-services/README
/etc/sv/apache:
total 8
drwxr-xr-x 2 root root 4096 2007-11-12 00:55 env
-rwxr-xr-x 1 root root 98 2006-06-29 04:25 run
lrwxrwxrwx 1 root root 18 2007-11-12 00:55 supervise -> /var/run/sv.apache
/etc/sv/chrony:
total 8
drwxr-xr-x 2 root root 4096 2007-11-12 00:55 log
-rwxr-xr-x 1 root root 52 2006-06-29 04:25 run
lrwxrwxrwx 1 root root 18 2007-11-12 00:55 supervise -> /var/run/sv.chrony
/etc/sv/cron:
total 4
-rwxr-xr-x 1 root root 119 2006-06-29 04:25 run
lrwxrwxrwx 1 root root 16 2007-11-12 00:55 supervise -> /var/run/sv.cron
/etc/sv/dbus:
total 4
-rw-r--r-- 1 root root 42 2007-11-12 01:09 run
/etc/sv/dhclient:
total 16
-rwxr-xr-x 1 root root 118 2006-06-29 04:25 check
-rw-r--r-- 1 root root 16 2006-06-29 04:25 interfaces
drwxr-xr-x 2 root root 4096 2007-11-12 00:55 log
-rwxr-xr-x 1 root root 95 2006-06-29 04:25 run
lrwxrwxrwx 1 root root 20 2007-11-12 00:55 supervise -> /var/run/sv.dhclient
/etc/sv/dhcp:
total 8
drwxr-xr-x 2 root root 4096 2007-11-12 00:55 log
-rwxr-xr-x 1 root root 66 2006-06-29 04:25 run
lrwxrwxrwx 1 root root 16 2007-11-12 00:55 supervise -> /var/run/sv.dhcp
/etc/sv/exim:
total 8
drwxr-xr-x 2 root root 4096 2006-06-29 04:25 peers
-rwxr-xr-x 1 root root 132 2006-06-29 04:25 run
lrwxrwxrwx 1 root root 16 2007-11-12 00:55 supervise -> /var/run/sv.exim
/etc/sv/gdm:
total 4
-rwxr-xr-x 1 root root 39 2006-06-29 04:25 run
lrwxrwxrwx 1 root root 15 2007-11-12 00:55 supervise -> /var/run/sv.gdm
/etc/sv/getty-1:
total 8
-rwxr-xr-x 1 root root 31 2006-11-04 14:33 finish
-rwxr-xr-x 1 root root 97 2006-11-04 14:33 run
lrwxrwxrwx 1 root root 19 2007-11-12 00:40 supervise -> /var/run/sv.getty-1
/etc/sv/getty-2:
total 8
-rwxr-xr-x 1 root root 31 2006-11-04 14:33 finish
-rwxr-xr-x 1 root root 97 2006-11-04 14:33 run
lrwxrwxrwx 1 root root 19 2007-11-12 00:40 supervise -> /var/run/sv.getty-2
/etc/sv/getty-3:
total 8
-rwxr-xr-x 1 root root 31 2006-11-04 14:33 finish
-rwxr-xr-x 1 root root 97 2006-11-04 14:33 run
lrwxrwxrwx 1 root root 19 2007-11-12 00:40 supervise -> /var/run/sv.getty-3
/etc/sv/getty-4:
total 8
-rwxr-xr-x 1 root root 31 2006-11-04 14:33 finish
-rwxr-xr-x 1 root root 97 2006-11-04 14:33 run
lrwxrwxrwx 1 root root 19 2007-11-12 00:40 supervise -> /var/run/sv.getty-4
/etc/sv/getty-5:
total 8
-rwxr-xr-x 1 root root 31 2006-11-21 17:40 finish
-rwxr-xr-x 1 root root 97 2006-11-21 17:40 run
lrwxrwxrwx 1 root root 19 2007-11-12 00:38 supervise -> /var/run/sv.getty-5
/etc/sv/hald:
total 8
-rw-r--r-- 1 root root 41 2007-11-12 01:08 run
drwx------ 2 root root 4096 2007-11-12 01:31 supervise
/etc/sv/nfs-kernel-server:
total 12
-rwxr-xr-x 1 root root 126 2006-06-29 04:25 finish
drwxr-xr-x 2 root root 4096 2007-11-12 00:55 log
-rwxr-xr-x 1 root root 154 2006-06-29 04:25 run
lrwxrwxrwx 1 root root 29 2007-11-12 00:55 supervise -> /var/run/sv.nfs-kernel-server
/etc/sv/portmap:
total 8
drwxr-xr-x 2 root root 4096 2007-11-12 00:55 log
-rwxr-xr-x 1 root root 36 2006-06-29 04:25 run
lrwxrwxrwx 1 root root 19 2007-11-12 00:55 supervise -> /var/run/sv.portmap
/etc/sv/postfix:
total 4
-rwxr-xr-x 1 root root 277 2006-06-29 04:25 run
lrwxrwxrwx 1 root root 19 2007-11-12 00:55 supervise -> /var/run/sv.postfix
/etc/sv/socklog-inet:
total 8
drwxr-xr-x 2 root root 4096 2007-11-12 00:40 log
-rwxr-xr-x 1 root root 59 2006-12-09 05:37 run
lrwxrwxrwx 1 root root 24 2007-11-12 00:40 supervise -> /var/run/sv.socklog-inet
/etc/sv/socklog-klog:
total 8
drwxr-xr-x 2 root root 4096 2007-11-12 00:40 log
-rwxr-xr-x 1 root root 136 2006-12-09 05:37 run
lrwxrwxrwx 1 root root 24 2007-11-12 00:40 supervise -> /var/run/sv.socklog-klog
/etc/sv/socklog-notify:
total 4
-rwxr-xr-x 1 root root 268 2006-12-09 05:37 run
lrwxrwxrwx 1 root root 26 2007-11-12 00:40 supervise -> /var/run/sv.socklog-notify
/etc/sv/socklog-ucspi-tcp:
total 8
drwxr-xr-x 2 root root 4096 2007-11-12 00:40 log
-rwxr-xr-x 1 root root 101 2006-12-09 05:37 run
lrwxrwxrwx 1 root root 29 2007-11-12 00:40 supervise -> /var/run/sv.socklog-ucspi-tcp
/etc/sv/socklog-unix:
total 12
-rwxr-xr-x 1 root root 60 2006-12-09 05:37 check
drwxr-xr-x 2 root root 4096 2007-11-12 00:40 log
-rwxr-xr-x 1 root root 62 2006-12-09 05:37 run
lrwxrwxrwx 1 root root 24 2007-11-12 00:40 supervise -> /var/run/sv.socklog-unix
/etc/sv/squid:
total 4
-rwxr-xr-x 1 root root 407 2006-06-29 04:25 run
lrwxrwxrwx 1 root root 17 2007-11-12 00:55 supervise -> /var/run/sv.squid
/etc/sv/ssh:
total 8
drwxr-xr-x 2 root root 4096 2007-11-12 00:55 log
-rwxr-xr-x 1 root root 247 2006-06-29 04:25 run
lrwxrwxrwx 1 root root 15 2007-11-12 00:55 supervise -> /var/run/sv.ssh
/etc/sv/xdm:
total 4
-rwxr-xr-x 1 root root 39 2006-06-29 04:25 run
lrwxrwxrwx 1 root root 15 2007-11-12 00:55 supervise -> /var/run/sv.xdm