[Pkg-sysvinit-devel] Bug#590253: [sysvinit] update-rc.d does not create symlink in rc*.d
Marco Righi
marco.righi at gmail.com
Sun Jul 25 11:16:21 UTC 2010
Package: sysvinit
Version: 2.88dsf-11
Severity: normal
--- Please enter the report below this line. ---
Hi,
I have written a script and I have tried to add it with
update-rc.d marco_mountnfs.sh enable
getting some errors (something as symlink not found).
After this I ha tryed to disable apache
update-rc.d apache2 remove
and with the command
update-rc.d apache2 enable
I got the same error!
So I have recreated the symlink handly for apache
456 ln -s /etc/init.d/apache2 /etc/rc0.d/K01apache2
457 ln -s /etc/init.d/apache2 /etc/rc1.d/K01apache2
458 ln -s /etc/init.d/apache2 /etc/rc6.d/K01apache2
459 ln -s /etc/init.d/apache2 /etc/rc2.d/S19apache2
460 ln -s /etc/init.d/apache2 /etc/rc3.d/S19apache2
461 ln -s /etc/init.d/apache2 /etc/rc4.d/S19apache2
and my script!
Follows my script
#! /bin/sh
### BEGIN INIT INFO
# Provides: marco_mountnfs
# Required-Start: $mountnfs
# Required-Stop: $network $portmap nfs-common udev-mtab
# Should-Start:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Patch to NFS
# Description: Patch to NFS
#
#
#
### END INIT INFO
. /lib/init/vars.sh
. /lib/lsb/init-functions
case "$1" in
start)
mount -a
;;
restart|reload|force-reload)
mount -a
;;
stop)
;;
*)
echo "Usage: $0 start|stop" >&2
exit 3
;;
esac
: exit 0
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.32-5-686-bigmem
Debian Release: squeeze/sid
500 testing-proposed-updates ftp.fr.debian.org
500 testing www.debian-multimedia.org
500 testing security.debian.org
500 testing http.us.debian.org
500 testing ftp.fr.debian.org
--- Package information. ---
Depends (Version) | Installed
==========================-+-===========
libc6 (>= 2.3) | 2.11.2-2
libselinux1 (>= 1.32) | 2.0.94-1
libsepol1 (>= 1.14) | 2.0.41-1
Package's Recommends field is empty.
Package's Suggests field is empty.
More information about the Pkg-sysvinit-devel
mailing list