[Lxc-users] Installing services resets the symlinks in /etc/rc*.d (debian template)
Csordás Csaba Ifj.
cscsordas at gmail.com
Thu Jan 3 19:51:06 UTC 2013
I've found the following problem:
After container creation, do the following:
root at template:~# ls -la /etc/rc6.d/
total 12
drwxr-xr-x 2 root root 4096 Jan 3 20:00 .
drwxr-xr-x 38 root root 4096 Jan 3 20:45 ..
lrwxrwxrwx 1 root root 20 Jan 3 17:19 K01hwclock.sh -> ../init.d/hwclock.sh
lrwxrwxrwx 1 root root 18 Jan 3 17:19 K01sendsigs -> ../init.d/sendsigs
lrwxrwxrwx 1 root root 17 Jan 3 17:19 K01urandom -> ../init.d/urandom
lrwxrwxrwx 1 root root 32 Jan 3 20:00 K02umountnfs.sh ->
/bin/live-initscripts-empty-stop
lrwxrwxrwx 1 root root 20 Jan 3 17:19 K03networking -> ../init.d/networking
lrwxrwxrwx 1 root root 32 Jan 3 20:00 K04umountfs ->
/bin/live-initscripts-empty-stop
lrwxrwxrwx 1 root root 32 Jan 3 20:00 K05umountroot ->
/bin/live-initscripts-empty-stop
lrwxrwxrwx 1 root root 16 Jan 3 17:19 K06reboot -> ../init.d/reboot
-rw-r--r-- 1 root root 351 Mar 17 2012 README
root at template:~# apt-get install --no-install-recommends rsyslog
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
rsyslog-mysql rsyslog-pgsql rsyslog-doc rsyslog-gnutls
rsyslog-gssapi rsyslog-relp
Recommended packages:
logrotate
The following NEW packages will be installed:
rsyslog
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 545 kB of archives.
After this operation, 1,336 kB of additional disk space will be used.
Get:1 http://http.us.debian.org/debian/ wheezy/main rsyslog amd64
5.8.11-2 [545 kB]
Fetched 545 kB in 5s (97.9 kB/s)
Selecting previously unselected package rsyslog.
(Reading database ... 10562 files and directories currently installed.)
Unpacking rsyslog (from .../rsyslog_5.8.11-2_amd64.deb) ...
Setting up rsyslog (5.8.11-2) ...
[ ok ] Starting enhanced syslogd: rsyslogd.
root at template:~# ls -la /etc/rc6.d/
total 12
drwxr-xr-x 2 root root 4096 Jan 3 20:46 .
drwxr-xr-x 41 root root 4096 Jan 3 20:46 ..
lrwxrwxrwx 1 root root 18 Jan 3 17:19 K01sendsigs -> ../init.d/sendsigs
lrwxrwxrwx 1 root root 17 Jan 3 17:19 K01urandom -> ../init.d/urandom
lrwxrwxrwx 1 root root 17 Jan 3 20:46 K02rsyslog -> ../init.d/rsyslog
lrwxrwxrwx 1 root root 20 Jan 3 20:46 K03hwclock.sh -> ../init.d/hwclock.sh
lrwxrwxrwx 1 root root 22 Jan 3 20:46 K03umountnfs.sh ->
../init.d/umountnfs.sh
lrwxrwxrwx 1 root root 20 Jan 3 20:46 K04networking -> ../init.d/networking
lrwxrwxrwx 1 root root 18 Jan 3 20:46 K05umountfs -> ../init.d/umountfs
lrwxrwxrwx 1 root root 20 Jan 3 20:46 K06umountroot -> ../init.d/umountroot
lrwxrwxrwx 1 root root 16 Jan 3 20:46 K07reboot -> ../init.d/reboot
-rw-r--r-- 1 root root 351 Mar 17 2012 README
Regards,
CsCs
More information about the lxc-users
mailing list