Mailing List CGatePro@mail.stalker.com Message #102210
From: Jonathan Weinraub <jonathan@mail.weinraub.net>
Subject: CGPro causing problems with PHP/MySQL
Date: Mon, 27 Jun 2011 06:36:49 -0700
To: <CGatePro>
X-Mailer: CommuniGate Pro WebUser v5.3.13
I use CGPro at my office so since I liked I decided to use it on my personal server (5.3)  Anyway, the installation seemed to go pretty smoothly, it sends/receives fine.  But now when I installed php5-server on a Debian Squeeze system, I got all sorts of errors that was related to CGPro.  Also, every time I install anything that has mysql-server as a dependency, dpkg tries to reconfigure it to issue the new root password.  Since it is already configured properly and running, it still happens.  I think all these errors are related to CGPro.

One thing I noticed was that the rc#.d folders, CGPro's symbolic link was absolute whilst everything else was relative.  I unlinked and relinked but that did not fix the problem.

I ran test-suite as per the below mentioned link suggested and the cgpro block is emptyish compared to everything else, as seen below:


# output from as per http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=589238
# but, the first addscript seems its missing everything, not sure if thats an issue since it appears they're all hashes for comments?

weinraub:~# /usr/share/insserv/make-testsuite

set +C
cat <<'EOF' > $insconf
$local_fs +mountall +mountoverflowtmp +umountfs
$network +networking +ifupdown
$named +named +dnsmasq +lwresd +bind9 $network
$remote_fs $local_fs +mountnfs +mountnfs-bootclean +umountnfs +sendsigs
$syslog +rsyslog +sysklogd +syslog-ng +dsyslog +inetutils-syslogd
$portmap portmap
$time +hwclock
<interactive> glibc udev console-screen keymap keyboard-setup console-setup cryptdisks cryptdisks-early checkfs-loop
EOF
set -C

addscript CommuniGate <<'EOF'
EOF

addscript anacron <<'EOF'
### BEGIN INIT INFO
# Provides:          anacron
# Required-Start:    $remote_fs $syslog $time
# Required-Stop:     $remote_fs $syslog $time
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Handle anac(h)ronistic cron
### END INIT INFO
EOF

addscript apache2 <<'EOF'
### BEGIN INIT INFO
# Provides:          apache2
# Required-Start:    $local_fs $remote_fs $network $syslog $named
# Required-Stop:     $local_fs $remote_fs $network $syslog $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# X-Interactive:     true
# Short-Description: Start/stop apache2 web server
### END INIT INFO
EOF

addscript bind9 <<'EOF'
### BEGIN INIT INFO
# Provides:          bind9
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Should-Start:      $network $syslog
# Should-Stop:       $network $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start and stop bind9
# Description:       bind9 is a Domain Name Server (DNS)
#        which translates ip addresses to and from internet names
### END INIT INFO
EOF

addscript bootlogd <<'EOF'
### BEGIN INIT INFO
# Provides:          bootlogd
# Required-Start:    mountdevsubfs
# X-Start-Before:    hostname keymap keyboard-setup procps pcmcia hwclock hwclockfirst hdparm hibernate-cleanup lvm2
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Start or stop bootlogd.
# Description:       Starts or stops the bootlogd log program
#                    which logs boot messages.
### END INIT INFO
EOF

addscript bootlogs <<'EOF'
### BEGIN INIT INFO
# Provides:          bootlogs
# Required-Start:    hostname $local_fs
# Required-Stop:
# Should-Start:      $x-display-manager gdm kdm xdm ldm sdm wdm nodm
# Default-Start:     1 2 3 4 5
# Default-Stop:
# Short-Description: Log file handling to be done during bootup.
# Description:       Various things that don't need to be done particularly
#                    early in the boot, just before getty is run.
### END INIT INFO
EOF

addscript bootmisc.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          bootmisc
# Required-Start:    $remote_fs
# Required-Stop:
# Should-Start:      udev
# Default-Start:     S
# Default-Stop:
# Short-Description: Miscellaneous things to be done during bootup.
# Description:       Some cleanup.  Note, it need to run after mountnfs-bootclean.sh.
### END INIT INFO
EOF

addscript checkfs.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          checkfs
# Required-Start:    checkroot
# Required-Stop:
# Should-Start:      mtab
# Default-Start:     S
# Default-Stop:
# X-Interactive:     true
# Short-Description: Check all filesystems.
### END INIT INFO
EOF

addscript checkroot.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          checkroot
# Required-Start:    mountdevsubfs hostname
# Required-Stop:
# Should-Start:      keymap hwclockfirst hdparm bootlogd
# Should-stop:
# Default-Start:     S
# Default-Stop:
# X-Interactive:     true
# Short-Description: Check to root file system.
### END INIT INFO
EOF

addscript console-screen.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          console-screen
# Required-Start:    $local_fs $remote_fs
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Description: Set console screen modes and fonts
# Short-Description: Prepare console
### END INIT INFO
EOF

addscript cron <<'EOF'
### BEGIN INIT INFO
# Provides:          cron
# Required-Start:    $remote_fs $syslog $time
# Required-Stop:     $remote_fs $syslog $time
# Should-Start:      $named slapd autofs ypbind nscd nslcd
# Should-Stop:       $named slapd autofs ypbind nscd nslcd
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Regular background program processing daemon
# Description:       cron is a standard UNIX program that runs user-specified
#                    programs at periodic scheduled times. vixie cron adds a
#                    number of features to the basic UNIX cron, including better
#                    security and more powerful configuration options.
### END INIT INFO
EOF

addscript dhcpv6_hack.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          dhcpv6_hack
# Required-Start:
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 6
# Short-Description: dhcp v6 key creation.
# Description:       Create dhcp v6 key.
### END INIT INFO
EOF

addscript fetchmail <<'EOF'
### BEGIN INIT INFO
# Provides:          fetchmail
# Required-Start:    $network $local_fs $remote_fs $syslog
# Required-Stop:     $remote_fs
# Should-Start:      $mail-transport-agent exim4 $named
# Should-Stop:       $mail-transport-agent exim4
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: init-Script for system wide fetchmail daemon
### END INIT INFO
EOF

addscript halt <<'EOF'
### BEGIN INIT INFO
# Provides:          halt
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:      0
# Short-Description: Execute the halt command.
# Description:
### END INIT INFO
EOF

addscript hostname.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          hostname
# Required-Start:
# Required-Stop:
# Should-Start:      glibc
# Default-Start:     S
# Default-Stop:
# Short-Description: Set hostname based on ../hostname
# Description:       Read the machines hostname from ../hostname, and
#                    update the kernel value with this value.  If
#                    ../hostname is empty, the current kernel value
#                    for hostname is used.  If the kernel value is
#                    empty, the value 'localhost' is used.
### END INIT INFO
EOF

addscript hwclock.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          hwclock
# Required-Start:    checkroot
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:      0 6
### END INIT INFO
EOF

addscript hwclockfirst.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          hwclockfirst
# Required-Start:    mountdevsubfs
# Required-Stop:
# Default-Start:     S
# X-Start-Before:    checkroot
# Default-Stop:
### END INIT INFO
EOF

addscript ifupdown <<'EOF'
### BEGIN INIT INFO
# Provides:          ifupdown
# Required-Start:    ifupdown-clean
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: Prepare the system for taking up interfaces.
### END INIT INFO
EOF

addscript ifupdown-clean <<'EOF'
### BEGIN INIT INFO
# Provides:          ifupdown-clean
# Required-Start:    checkroot
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Clean old interface status info during boot.
### END INIT INFO
EOF

addscript keymap.sh <<'EOF'
### BEGIN INIT INFO
# Provides:             keymap
# Required-Start:       mountdevsubfs
# Required-Stop:
# Default-Start:        S
# Default-Stop:
# X-Interactive: true
# Short-Description: Set keymap
# Description: Set the Console keymap
### END INIT INFO
EOF

addscript killprocs <<'EOF'
### BEGIN INIT INFO
# Provides:          killprocs
# Required-Start:    $local_fs
# Required-Stop:
# Default-Start:     1
# Default-Stop:
# Short-Description: executed by init(8) upon entering runlevel 1 (single).
### END INIT INFO
EOF

addscript klogd <<'EOF'
### BEGIN INIT INFO
# Provides:             klogd
# Required-Start:       $syslog
# Required-Stop:        $syslog
# Default-Start:        2 3 4 5
# Default-Stop:         0 1 6
# Short-Description:    Kernel logger
### END INIT INFO
EOF

addscript module-init-tools <<'EOF'
### BEGIN INIT INFO
# Provides:          module-init-tools
# Required-Start:
# Required-Stop:
# Should-Start:      checkroot
# Should-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Process ../modules.
# Description:       Load the modules listed in ../modules.
### END INIT INFO
EOF

addscript modules_dep.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          modules_dep
# Required-Start:
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 6
# Short-Description: modules.dep creation.
# Description:       Create and destroy modules.dep.
### END INIT INFO
EOF

addscript mountall-bootclean.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mountall-bootclean
# Required-Start:    mountall
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: bootclean after mountall.
# Description:       Clean temporary filesystems after
#                    all local filesystems have been mounted.
### END INIT INFO
EOF

addscript mountall.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mountall
# Required-Start:    checkfs
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Mount all filesystems.
# Description:
### END INIT INFO
EOF

addscript mountdevsubfs.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mountdevsubfs
# Required-Start:    mountkernfs
# Required-Stop:
# Should-Start:      udev
# Default-Start:     S
# Default-Stop:
# Short-Description: Mount special file systems under /dev.
# Description:       Mount the virtual filesystems the kernel provides
#                    that ordinarily live under the /dev filesystem.
### END INIT INFO
EOF

addscript mountkernfs.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mountkernfs
# Required-Start:
# Required-Stop:
# Should-Start:      glibc
# Default-Start:     S
# Default-Stop:
# Short-Description: Mount kernel virtual file systems.
# Description:       Mount initial set of virtual filesystems the kernel
#                    provides and that are required by everything.
### END INIT INFO
EOF

addscript mountnfs-bootclean.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mountnfs-bootclean
# Required-Start:    $local_fs mountnfs
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: bootclean after mountnfs.
# Description:       Clean temporary filesystems after
#                    network filesystems have been mounted.
### END INIT INFO
EOF

addscript mountnfs.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mountnfs
# Required-Start:    $local_fs
# Required-Stop:
# Should-Start:      $network $portmap nfs-common  udev-mtab
# Default-Start:     S
# Default-Stop:
# Short-Description: Wait for network file systems to be mounted
# Description:       Network file systems are mounted by
#                    ../network/if-up.d/mountnfs in the background
#                    when interfaces are brought up; this script waits
#                    for them to be mounted before carrying on.
### END INIT INFO
EOF

addscript mountoverflowtmp <<'EOF'
### BEGIN INIT INFO
# Provides:          mountoverflowtmp
# Required-Start:    mountall-bootclean
# Required-Stop:     umountfs
# Default-Start:     S
# Default-Stop:
# Short-Description: mount emergency /tmp.
# Description:       Mount a tmpfs on /tmp if there would
#                    otherwise be too little space to log in.
### END INIT INFO
EOF

addscript mtab.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          mtab
# Required-Start:    checkroot
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Update mtab file.
# Description:       Update the mount program's mtab file after
#                    all local filesystems have been mounted.
### END INIT INFO
EOF

addscript mysql <<'EOF'
### BEGIN INIT INFO
# Provides:          mysql
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      $network $time
# Should-Stop:       $network $time
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start and stop the mysql database server daemon
# Description:       Controls the main MySQL database server daemon "mysqld"
#                    and its wrapper script "mysqld_safe".
### END INIT INFO
EOF

addscript networking <<'EOF'
### BEGIN INIT INFO
# Provides:          networking
# Required-Start:    mountkernfs $local_fs
# Required-Stop:     $local_fs
# Should-Start:      ifupdown
# Should-Stop:       ifupdown
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: Raise network interfaces.
### END INIT INFO
EOF

addscript portmap <<'EOF'
### BEGIN INIT INFO
# Provides:          portmap
# Required-Start:    $network $local_fs
# Required-Stop:     $network $local_fs
# Default-Start:     S 2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: The RPC portmapper
# Description:       Portmap is a server that converts RPC (Remote
#                    Procedure Call) program numbers into DARPA
#                    protocol port numbers. It must be running in
#                    order to make RPC calls. Services that use
#                    RPC include NFS and NIS.
### END INIT INFO
EOF

addscript procps <<'EOF'
### BEGIN INIT INFO
# Provides:          procps
# Required-Start:    mountkernfs $local_fs
# Required-Stop:
# Should-Start:      udev module-init-tools
# Default-Start:     S
# Default-Stop:
# Short-Description: Configure kernel parameters at boottime
# Description:  Loads kernel parameters that are specified in ../sysctl.conf
### END INIT INFO
EOF

addscript quota <<'EOF'
### BEGIN INIT INFO
# Provides:          quota
# Short-Description: Enable user quota
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Default-Start:     S
# Default-Stop:      0 6
### END INIT INFO
EOF

addscript quotarpc <<'EOF'
### BEGIN INIT INFO
# Provides:          quotarpc
# Short-Description: Starts rpc process for remote quota handling
# Required-Start:    $remote_fs $syslog quota
# Required-Stop:     $remote_fs $syslog quota
# Should-Start:      $portmap rpcbind
# Should-Stop:       $portmap rpcbind
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
### END INIT INFO
EOF

addscript rc.local <<'EOF'
### BEGIN INIT INFO
# Provides:          rc.local
# Required-Start:    $remote_fs $syslog $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Run ../rc.local if it exist
### END INIT INFO
EOF

addscript reboot <<'EOF'
### BEGIN INIT INFO
# Provides:          reboot
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:      6
# Short-Description: Execute the reboot command.
# Description:
### END INIT INFO
EOF

addscript rmnologin <<'EOF'
### BEGIN INIT INFO
# Provides:          rmnologin
# Required-Start:    $remote_fs $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Remove ../nologin at boot
# Description:       This script removes the ../nologin file as the
#                    last step in the boot process, if DELAYLOGIN=yes.
#                    If DELAYLOGIN=no, ../nologin was not created by
#                    bootmisc earlier in the boot process.
### END INIT INFO
EOF

addscript rsync <<'EOF'
### BEGIN INIT INFO
# Provides:          rsyncd
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      $named
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: fast remote file copy program daemon
# Description:       rsync is a program that allows files to be copied to and
#                    from remote machines in much the same way as rcp.
#                    This provides rsyncd daemon functionality.
### END INIT INFO
EOF

addscript samba <<'EOF'
### BEGIN INIT INFO
# Provides:          samba
# Required-Start:    $network $local_fs $remote_fs
# Required-Stop:     $network $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Should-Start:      slapd
# Should-Stop:       slapd
# Short-Description: start Samba daemons (nmbd and smbd)
### END INIT INFO
EOF

addscript saslauthd <<'EOF'
### BEGIN INIT INFO
# Provides:          saslauthd
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      1
# Short-Description: saslauthd startup script
# Description:       This script starts the saslauthd daemon. It is
#                    configured using the file ../default/saslauthd.
### END INIT INFO
EOF

addscript screen-cleanup <<'EOF'
### BEGIN INIT INFO
# Provides:          screen-cleanup
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Default-Start:     S
# Default-Stop:
# Short-Description: screen sessions cleaning
### END INIT INFO
EOF

addscript sendmail <<'EOF'
### BEGIN INIT INFO
# Provides:          sendmail
# Required-Start:    $remote_fs $network $syslog
# Required-Stop:     $remote_fs $network $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      1
# Short-Description: powerful, efficient, and scalable Mail Transport Agent
# Description:       Sendmail is an alternative Mail Transport Agent (MTA)
#                    for Debian. It is suitable for handling sophisticated
#                    mail configurations, although this means that its
#                    configuration can also be complex. Fortunately, simple
#                    thing can be done easily, and complex thing are possible,
#                    even if not easily understood ;)  Sendmail is the *ONLY*
#                    MTA with a Turing complete language to control *ALL*
#                    aspects of delivery!
### END INIT INFO
EOF

addscript sendsigs <<'EOF'
### BEGIN INIT INFO
# Provides:          sendsigs
# Required-Start:
# Required-Stop:     umountnfs
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Kill all remaining processes.
# Description:
### END INIT INFO
EOF

addscript single <<'EOF'
### BEGIN INIT INFO
# Provides:          single
# Required-Start:    $local_fs $all killprocs
# Required-Stop:
# Default-Start:     1
# Default-Stop:
# Short-Description: executed by init(8) upon entering runlevel 1 (single).
### END INIT INFO
EOF

addscript ssh <<'EOF'
### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: OpenBSD Secure Shell server
### END INIT INFO
EOF

addscript ssh_key_hack.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          ssh_key_hack
# Required-Start:
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 6
# Short-Description: ssh keys creation.
# Description:       Create ssh keys.
### END INIT INFO
EOF

addscript stop-bootlogd <<'EOF'
### BEGIN INIT INFO
# Provides:          stop-bootlogd
# Required-Start:    $local_fs $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Stop bootlogd
# Description:       See the init.d/bootlogd script
### END INIT INFO
EOF

addscript stop-bootlogd-single <<'EOF'
### BEGIN INIT INFO
# Provides:          stop-bootlogd-single
# Required-Start:    $local_fs $all
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Stop bootlogd in single user mode
# Description:       See the init.d/bootlogd script
### END INIT INFO
EOF

addscript sudo <<'EOF'
### BEGIN INIT INFO
# Provides:          sudo
# Required-Start:    $local_fs $remote_fs
# Required-Stop:
# X-Start-Before:    rmnologin
# Default-Start:     2 3 4 5
# Default-Stop:
### END INIT INFO
EOF

addscript sysklogd <<'EOF'
### BEGIN INIT INFO
# Provides:             sysklogd
# Required-Start:       $remote_fs $time
# Required-Stop:        $remote_fs $time
# Should-Start:         $network
# Should-Stop:          $network
# Default-Start:        2 3 4 5
# Default-Stop:         0 1 6
# Short-Description:    System logger
### END INIT INFO
EOF

addscript udev <<'EOF'
### BEGIN INIT INFO
# Provides:          udev
# Required-Start:    mountkernfs
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# X-Interactive:     true
# Short-Description: Start udevd, populate /dev and load drivers.
### END INIT INFO
EOF

addscript udev-mtab <<'EOF'
### BEGIN INIT INFO
# Provides:          udev-mtab
# Required-Start:    udev $local_fs
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Add to mtab the entry for /dev.
### END INIT INFO
EOF

addscript umountfs <<'EOF'
### BEGIN INIT INFO
# Provides:          umountfs
# Required-Start:
# Required-Stop:     umountroot
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Turn off swap and unmount all local file systems.
# Description:
### END INIT INFO
EOF

addscript umountnfs.sh <<'EOF'
### BEGIN INIT INFO
# Provides:          umountnfs
# Required-Start:
# Required-Stop:     umountfs
# Should-Stop:       $network $portmap nfs-common
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Unmount all network filesystems except the root fs.
# Description:       Also unmounts all virtual filesystems (proc,
#                    devpts, usbfs, sysfs) that are not mounted at the
#                    top level.
### END INIT INFO
EOF

addscript umountroot <<'EOF'
### BEGIN INIT INFO
# Provides:          umountroot
# Required-Start:
# Required-Stop:
# Should-Stop:       halt reboot kexec
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Mount the root filesystem read-only.
### END INIT INFO
EOF

addscript urandom <<'EOF'
### BEGIN INIT INFO
# Provides:          urandom
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: Save and restore random seed between restarts.
# Description:       This script saves the random seed between restarts.
#                    It is called from the boot, halt and reboot scripts.
### END INIT INFO
EOF

addscript vzquota <<'EOF'
### BEGIN INIT INFO
# Provides: vzreboot
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Creates Virtuozzo second level quota
### END INIT INFO
EOF

addscript vzreboot <<'EOF'
### BEGIN INIT INFO
# Provides: vzreboot
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop: 6
# Description: Creates Virtuozzo reboot mark
### END INIT INFO
EOF

addscript wide-dhcpv6-client <<'EOF'
### BEGIN INIT INFO
# Provides:          wide-dhcpv6-client
# Required-Start:    $syslog $network $remote_fs
# Required-Stop:     $syslog $remote_fs
# Should-Start:      $local_fs
# Should-Stop:       $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start/Stop WIDE DHCPv6 client
# Description:       (empty)
### END INIT INFO
EOF

addscript xinetd <<'EOF'
### BEGIN INIT INFO
# Provides:          inetd
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Should-Start:      $syslog
# Should-Stop:       $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start or stop the xinetd daemon.
### END INIT INFO
EOF

cd $tmpdir/etc
mkdir rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d rcS.d
ln -s ../init.d/anacron rc0.d/K01anacron
ln -s ../init.d/apache2 rc0.d/K01apache2
ln -s ../init.d/modules_dep.sh rc0.d/K01modules_dep.sh
ln -s ../init.d/urandom rc0.d/K01urandom
ln -s ../init.d/xinetd rc0.d/K01xinetd
ln -s ../init.d/quota rc0.d/K02quota
ln -s ../init.d/sysklogd rc0.d/K03sysklogd
ln -s ../init.d/hwclock.sh rc0.d/K04hwclock.sh
ln -s ../init.d/sendsigs rc0.d/K04sendsigs
ln -s ../init.d/umountnfs.sh rc0.d/K05umountnfs.sh
ln -s ../init.d/networking rc0.d/K07networking
ln -s ../init.d/ifupdown rc0.d/K08ifupdown
ln -s ../init.d/umountfs rc0.d/K09umountfs
ln -s ../init.d/CommuniGate rc0.d/K10CommuniGate
ln -s ../init.d/umountroot rc0.d/K10umountroot
ln -s ../init.d/halt rc0.d/K11halt
ln -s ../init.d/anacron rc1.d/K01anacron
ln -s ../init.d/apache2 rc1.d/K01apache2
ln -s ../init.d/saslauthd rc1.d/K01saslauthd
ln -s ../init.d/sendmail rc1.d/K01sendmail
ln -s ../init.d/xinetd rc1.d/K01xinetd
ln -s ../init.d/sysklogd rc1.d/K03sysklogd
ln -s ../init.d/CommuniGate rc1.d/K10CommuniGate
ln -s ../init.d/killprocs rc1.d/S01killprocs
ln -s ../init.d/single rc1.d/S02single
ln -s ../init.d/CommuniGate rc2.d/K10CommuniGate
ln -s ../init.d/modules_dep.sh rc2.d/S01modules_dep.sh
ln -s ../init.d/saslauthd rc2.d/S16saslauthd
ln -s ../init.d/sudo rc2.d/S16sudo
ln -s ../init.d/sysklogd rc2.d/S16sysklogd
ln -s ../init.d/anacron rc2.d/S17anacron
ln -s ../init.d/sendmail rc2.d/S17sendmail
ln -s ../init.d/ssh rc2.d/S17ssh
ln -s ../init.d/xinetd rc2.d/S17xinetd
ln -s ../init.d/apache2 rc2.d/S18apache2
ln -s ../init.d/cron rc2.d/S19cron
ln -s ../init.d/rc.local rc2.d/S20rc.local
ln -s ../init.d/rmnologin rc2.d/S20rmnologin
ln -s ../init.d/modules_dep.sh rc3.d/S01modules_dep.sh
ln -s ../init.d/saslauthd rc3.d/S16saslauthd
ln -s ../init.d/sudo rc3.d/S16sudo
ln -s ../init.d/sysklogd rc3.d/S16sysklogd
ln -s ../init.d/anacron rc3.d/S17anacron
ln -s ../init.d/sendmail rc3.d/S17sendmail
ln -s ../init.d/ssh rc3.d/S17ssh
ln -s ../init.d/xinetd rc3.d/S17xinetd
ln -s ../init.d/apache2 rc3.d/S18apache2
ln -s ../init.d/cron rc3.d/S19cron
ln -s ../init.d/rc.local rc3.d/S20rc.local
ln -s ../init.d/rmnologin rc3.d/S20rmnologin
ln -s ../init.d/CommuniGate rc3.d/S80CommuniGate
ln -s ../init.d/modules_dep.sh rc4.d/S01modules_dep.sh
ln -s ../init.d/saslauthd rc4.d/S16saslauthd
ln -s ../init.d/sudo rc4.d/S16sudo
ln -s ../init.d/sysklogd rc4.d/S16sysklogd
ln -s ../init.d/anacron rc4.d/S17anacron
ln -s ../init.d/sendmail rc4.d/S17sendmail
ln -s ../init.d/ssh rc4.d/S17ssh
ln -s ../init.d/xinetd rc4.d/S17xinetd
ln -s ../init.d/apache2 rc4.d/S18apache2
ln -s ../init.d/cron rc4.d/S19cron
ln -s ../init.d/rc.local rc4.d/S20rc.local
ln -s ../init.d/rmnologin rc4.d/S20rmnologin
ln -s ../init.d/modules_dep.sh rc5.d/S01modules_dep.sh
ln -s ../init.d/saslauthd rc5.d/S16saslauthd
ln -s ../init.d/sudo rc5.d/S16sudo
ln -s ../init.d/sysklogd rc5.d/S16sysklogd
ln -s ../init.d/anacron rc5.d/S17anacron
ln -s ../init.d/sendmail rc5.d/S17sendmail
ln -s ../init.d/ssh rc5.d/S17ssh
ln -s ../init.d/xinetd rc5.d/S17xinetd
ln -s ../init.d/apache2 rc5.d/S18apache2
ln -s ../init.d/cron rc5.d/S19cron
ln -s ../init.d/rc.local rc5.d/S20rc.local
ln -s ../init.d/rmnologin rc5.d/S20rmnologin
ln -s ../init.d/CommuniGate rc5.d/S80CommuniGate
ln -s ../init.d/anacron rc6.d/K01anacron
ln -s ../init.d/apache2 rc6.d/K01apache2
ln -s ../init.d/modules_dep.sh rc6.d/K01modules_dep.sh
ln -s ../init.d/urandom rc6.d/K01urandom
ln -s ../init.d/vzreboot rc6.d/K01vzreboot
ln -s ../init.d/xinetd rc6.d/K01xinetd
ln -s ../init.d/quota rc6.d/K02quota
ln -s ../init.d/sysklogd rc6.d/K03sysklogd
ln -s ../init.d/hwclock.sh rc6.d/K04hwclock.sh
ln -s ../init.d/sendsigs rc6.d/K04sendsigs
ln -s ../init.d/umountnfs.sh rc6.d/K05umountnfs.sh
ln -s ../init.d/networking rc6.d/K07networking
ln -s ../init.d/ifupdown rc6.d/K08ifupdown
ln -s ../init.d/umountfs rc6.d/K09umountfs
ln -s ../init.d/CommuniGate rc6.d/K10CommuniGate
ln -s ../init.d/umountroot rc6.d/K10umountroot
ln -s ../init.d/reboot rc6.d/K11reboot
ln -s ../init.d/mountkernfs.sh rcS.d/S01mountkernfs.sh
ln -s ../init.d/udev rcS.d/S02udev
ln -s ../init.d/mountdevsubfs.sh rcS.d/S03mountdevsubfs.sh
ln -s ../init.d/bootlogd rcS.d/S04bootlogd
ln -s ../init.d/keymap.sh rcS.d/S05keymap.sh
ln -s ../init.d/hostname.sh rcS.d/S06hostname.sh
ln -s ../init.d/hwclockfirst.sh rcS.d/S06hwclockfirst.sh
ln -s ../init.d/checkroot.sh rcS.d/S07checkroot.sh
ln -s ../init.d/hwclock.sh rcS.d/S08hwclock.sh
ln -s ../init.d/ifupdown-clean rcS.d/S08ifupdown-clean
ln -s ../init.d/module-init-tools rcS.d/S08module-init-tools
ln -s ../init.d/mtab.sh rcS.d/S08mtab.sh
ln -s ../init.d/checkfs.sh rcS.d/S09checkfs.sh
ln -s ../init.d/ifupdown rcS.d/S10ifupdown
ln -s ../init.d/mountall.sh rcS.d/S10mountall.sh
ln -s ../init.d/mountall-bootclean.sh rcS.d/S11mountall-bootclean.sh
ln -s ../init.d/mountoverflowtmp rcS.d/S12mountoverflowtmp
ln -s ../init.d/networking rcS.d/S13networking
ln -s ../init.d/procps rcS.d/S13procps
ln -s ../init.d/udev-mtab rcS.d/S13udev-mtab
ln -s ../init.d/urandom rcS.d/S13urandom
ln -s ../init.d/mountnfs.sh rcS.d/S15mountnfs.sh
ln -s ../init.d/mountnfs-bootclean.sh rcS.d/S16mountnfs-bootclean.sh
ln -s ../init.d/console-screen.sh rcS.d/S17console-screen.sh
ln -s ../init.d/bootmisc.sh rcS.d/S18bootmisc.sh
ln -s ../init.d/quota rcS.d/S18quota
ln -s ../init.d/screen-cleanup rcS.d/S18screen-cleanup
ln -s ../init.d/stop-bootlogd-single rcS.d/S19stop-bootlogd-single

list_rclinks


Then here is a issue when I installed mysql-server that cgpro got angry.

Script started on Wed Jun 15 15:31:41 2011
weinraub:~# apt-get install mysql-server
Reading package lists... 0%
Reading package lists... 100%
Reading package lists... Done
Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree
Reading state information... 0%
Reading state information... 4%
Reading state information... Done
mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 218 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?

Setting up mysql-server-5.1 (5.1.49-3) ...
110615 15:32:01 [Note] Plugin 'FEDERATED' is disabled.
110615 15:32:01  InnoDB: Started; log sequence number 0 44233
110615 15:32:01  InnoDB: Starting shutdown...
110615 15:32:07  InnoDB: Shutdown completed; log sequence number 0 44233
insserv: warning: script 'K10CommuniGate' missing LSB tags and overrides
insserv: script vzquota: service vzreboot already provided!
insserv: warning: script 'CommuniGate' missing LSB tags and overrides
insserv: There is a loop at service CommuniGate if started
insserv: There is a loop between service rc.local and checkroot if started
insserv:  loop involving service checkroot at depth 4
insserv:  loop involving service keymap at depth 3
insserv: There is a loop between service rc.local and mountnfs if started
insserv:  loop involving service mountnfs at depth 9
insserv:  loop involving service networking at depth 8
insserv:  loop involving service quota at depth 12
insserv: There is a loop between service rc.local and mountoverflowtmp if started
insserv:  loop involving service mountoverflowtmp at depth 9
insserv:  loop involving service mountall-bootclean at depth 8
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv:  loop involving service anacron at depth 12
insserv:  loop involving service mtab at depth 5
insserv: There is a loop between service rc.local and checkroot if started
insserv:  loop involving service hostname at depth 4
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv:  loop involving service sysklogd at depth 12
insserv:  loop involving service portmap at depth 11
insserv: There is a loop between service rc.local and ifupdown-clean if started
insserv:  loop involving service ifupdown-clean at depth 6
insserv: There is a loop between service CommuniGate and udev if started
insserv:  loop involving service udev at depth 1
insserv:  loop involving service mountdevsubfs at depth 3
insserv:  loop involving service mountkernfs at depth 1
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service rc.local and mountnfs-bootclean if started
insserv:  loop involving service mountnfs-bootclean at depth 14
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting CommuniGate depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing mysql-server-5.1 (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.1; however:
  Package mysql-server-5.1 is not configured yet.
dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
configured to not write apport reports
Errors were encountered while processing:
 mysql-server-5.1
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
weinraub:~# exit

Script done on Wed Jun 15 15:33:17 2011


And some additional information that may be helpful....

weinraub:/var/www/html/helpdesk# /etc/init.d/mysql status
MySQL is stopped..
weinraub:/var/www/html/helpdesk# /etc/init.d/mysql start
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
weinraub:/var/www/html/helpdesk# /etc/init.d/mysql status
/usr/bin/mysqladmin Ver 8.42 Distrib 5.1.49, for debian-linux-gnu on i486
Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version 5.1.49-3
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/run/mysqld/mysqld.sock
Uptime: 5 sec

Threads: 1 Questions: 391 Slow queries: 0 Opens: 945 Flush tables: 1 Open tables: 64 Queries per second avg: 78.200.
weinraub:/var/www/html/helpdesk# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 134
Server version: 5.1.49-3 (Debian)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>


weinraub:/var/www/html/helpdesk# tail /var/log/dpkg.log
2011-06-17 13:50:52 status half-configured libmcrypt4 2.5.8-3.1
2011-06-17 13:50:52 status installed libmcrypt4 2.5.8-3.1
2011-06-17 13:50:52 configure php5-mcrypt 5.3.3-7+squeeze1 5.3.3-7+squeeze1
2011-06-17 13:50:52 status unpacked php5-mcrypt 5.3.3-7+squeeze1
2011-06-17 13:50:52 status unpacked php5-mcrypt 5.3.3-7+squeeze1
2011-06-17 13:50:52 status half-configured php5-mcrypt 5.3.3-7+squeeze1
2011-06-17 13:50:52 status installed php5-mcrypt 5.3.3-7+squeeze1
2011-06-17 13:51:12 startup packages configure
2011-06-17 13:51:12 configure mysql-server-5.1 5.1.49-3 5.1.49-3
2011-06-17 13:51:12 status half-configured mysql-server-5.1 5.1.49-3

I am not experiencing any errors with CGPro but it seems that the rc error above though is causing everything else to go haywire.

Any help is tremendously appreciated.

Thank you!

jon
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster