Hi,
OpenRC doesn’t take the hostname service service on LXC even if the
symlink exists:
as112 ~ # rc-status boot | grep hostname
as112 ~ # file /etc/runlevels/boot/hostname
/etc/runlevels/boot/hostname: symbolic link to /etc/init.d/hostname
On a bare-metal box, the service is started:
edge08-clouvider ~ # rc-status boot | grep hostname
hostname [ started ]
edge08-clouvider ~ # file /etc/runlevels/boot/hostname
/etc/runlevels/boot/hostname: symbolic link to /etc/init.d/hostname
edge08-clouvider ~ #
If I try to use `rc-update`, as the symlink exists, it fails, but if I
delete the service and re-add it, the result is the same:
as112 ~ # rc-update add hostname boot
* rc-update: hostname already installed in runlevel `boot'; skipping
as112 ~ # rc-update del hostname boot
* service hostname removed from runlevel boot
as112 ~ # rc-update add hostname boot
* service hostname added to runlevel boot
as112 ~ # rc-status boot | grep hostname
as112 ~ #
So, I’m a bit confused here. If someone has an idea…
Thanks!
--
Alarig
OpenRC doesn’t take the hostname service service on LXC even if the
symlink exists:
as112 ~ # rc-status boot | grep hostname
as112 ~ # file /etc/runlevels/boot/hostname
/etc/runlevels/boot/hostname: symbolic link to /etc/init.d/hostname
On a bare-metal box, the service is started:
edge08-clouvider ~ # rc-status boot | grep hostname
hostname [ started ]
edge08-clouvider ~ # file /etc/runlevels/boot/hostname
/etc/runlevels/boot/hostname: symbolic link to /etc/init.d/hostname
edge08-clouvider ~ #
If I try to use `rc-update`, as the symlink exists, it fails, but if I
delete the service and re-add it, the result is the same:
as112 ~ # rc-update add hostname boot
* rc-update: hostname already installed in runlevel `boot'; skipping
as112 ~ # rc-update del hostname boot
* service hostname removed from runlevel boot
as112 ~ # rc-update add hostname boot
* service hostname added to runlevel boot
as112 ~ # rc-status boot | grep hostname
as112 ~ #
So, I’m a bit confused here. If someone has an idea…
Thanks!
--
Alarig