just delete the darn thing, syslog-ng 3.x broke this
[util-vserver.git] / distrib / debian / initpost
index 2acb7d0..1cf629a 100755 (executable)
@@ -104,9 +104,33 @@ if $_CHROOT_SH testfile /etc/init.d/sendsigs; then
                -e 's/^\(\s\+splash_back\)$/#\1/'
 fi
 
-echo
-echo ">>> Executing post install script ... "
-echo
+
+# upstart fixing
+if $_CHROOT_SH testfile /sbin/initctl; then
+    for i in etc/init/*; do
+       i=${i##*/}
+       case "$i" in
+         (control-alt-delete.conf|rc.conf)
+           ;;
+         (rsyslog.conf|syslog-ng.conf)
+           ;;
+         (*)
+           chrootsed /etc/init/$i \
+               -e 's/^/#/'
+           ;;
+       esac
+    done
+    $_CHROOT_SH truncate /etc/init/vserver.conf <<EOF
+start on startup
+script
+       initctl emit virtual-filesystems
+       initctl emit local-filesystems
+       initctl emit remote-filesystems
+       initctl emit filesystem
+end script
+EOF
+fi
+
 
 # start vserver before we can exec anything inside it
 $_VSERVER "$NAME" stop &>/dev/null || :
@@ -125,7 +149,9 @@ test "$(cat "$cfgdir"/apps/init/style 2>/dev/null)" != "plain" || \
 pushd etc/init.d &>/dev/null
 for i in *; do
     case "$i" in
-      (sysklogd|syslog-ng|README|skeleton|sendsigs|single|rc|rc.local|rcS)
+      (sysklogd|syslog-ng|rsyslog|dsyslog)
+       ;;
+      (README|skeleton|sendsigs|single|rc|rc.local|rcS)
        ;;
       ($have_halt)
        ;;