1 |
Hi, |
2 |
|
3 |
OpenRC doesn’t take the hostname service service on LXC even if the |
4 |
symlink exists: |
5 |
|
6 |
as112 ~ # rc-status boot | grep hostname |
7 |
as112 ~ # file /etc/runlevels/boot/hostname |
8 |
/etc/runlevels/boot/hostname: symbolic link to /etc/init.d/hostname |
9 |
|
10 |
On a bare-metal box, the service is started: |
11 |
|
12 |
edge08-clouvider ~ # rc-status boot | grep hostname |
13 |
hostname [ started ] |
14 |
edge08-clouvider ~ # file /etc/runlevels/boot/hostname |
15 |
/etc/runlevels/boot/hostname: symbolic link to /etc/init.d/hostname |
16 |
edge08-clouvider ~ # |
17 |
|
18 |
If I try to use `rc-update`, as the symlink exists, it fails, but if I |
19 |
delete the service and re-add it, the result is the same: |
20 |
|
21 |
as112 ~ # rc-update add hostname boot |
22 |
* rc-update: hostname already installed in runlevel `boot'; skipping |
23 |
as112 ~ # rc-update del hostname boot |
24 |
* service hostname removed from runlevel boot |
25 |
as112 ~ # rc-update add hostname boot |
26 |
* service hostname added to runlevel boot |
27 |
as112 ~ # rc-status boot | grep hostname |
28 |
as112 ~ # |
29 |
|
30 |
So, I’m a bit confused here. If someone has an idea… |
31 |
|
32 |
Thanks! |
33 |
-- |
34 |
Alarig |