Package: sysv-rc-conf
Version: 0.99-5
Severity: normal
Hi,
When I want to change a symlink with the command line mode,
there is no check if the script/service in /etc/init.d exists.
Therefore sysv-rc-conf creates non valid symlinks in /etc/rc?.d
and a false service is registered.
Here is a transcript:
valverde:~# sysv-rc-conf --list foo
valverde:~# ls /etc/init.d/foo
ls: /etc/init.d/foo: No such file or directory
valverde:~# sysv-rc-conf --level 2 foo on
valverde:~# sysv-rc-conf --list foo
foo 2:on
valverde:~# ls /etc/rc?.d/*foo
/etc/rc2.d/S20foo@
valverde:~# cat /etc/rc2.d/S20foo
cat: /etc/rc2.d/S20foo: No such file or directory
I suggest adding the following line in the function update_link
of /usr/sbin/sysv-rc-conf :
valverde:~# diff -C 2 /usr/sbin/sysv-rc-conf{,.orig}
*** /usr/sbin/sysv-rc-conf Sun Feb 3 17:54:08 2008
--- /usr/sbin/sysv-rc-conf.orig Sun Feb 3 17:50:04 2008
***************
*** 140,145 ****
}
- die "$initd/$sn does not exist" unless( -e "$initd/$sn");
-
# If in priority mode and are completely deleting the link, $sk will
# be empty.
--- 140,143 ----
Regards,
Sourygna
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-486
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages sysv-rc-conf depends on:
ii libcurses-ui-perl 0.95-5 curses-based OO user interface fra
ii sysv-rc 2.86.ds1-38 System-V-like runlevel change mech
sysv-rc-conf recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]