Artix Linux Forum

Init systems => S6 => Topic started by: sn on 09 November 2021, 13:32:54

Title: s6-rc-bundle-update: fatal: unable to take lock on /run/s6-rc/compiled
Post by: sn on 09 November 2021, 13:32:54
Hi, I'm following the installation instructions and when i run s6-rc-bundle-update add chrony i get s6-rc-bundle-update: fatal: unable to take lock on /run/s6-rc/compiled: Permission denied even though i am root
TIA
Title: Re: s6-rc-bundle-update: fatal: unable to take lock on /run/s6-rc/compiled
Post by: Dudemanguy on 09 November 2021, 15:08:48
Oh, I see you're following the wiki guide. The s6-rc example command is incorrect. Because you are chrooted into a system which is not actually running s6-rc (there is no /run directory in the chroot), s6-rc-bundle-update finds no lock and fails. What the command should actually be is.

Code: [Select]
s6-rc-bundle-update -c /etc/s6/rc/compiled add default chrony

The -c argument merely specifies a path to the actual database you want to modify. I'll update the wiki entry.
Title: Re: s6-rc-bundle-update: fatal: unable to take lock on /run/s6-rc/compiled
Post by: sn on 09 November 2021, 15:40:48
Oh, I see you're following the wiki guide. The s6-rc example command is incorrect. Because you are chrooted into a system which is not actually running s6-rc (there is no /run directory in the chroot), s6-rc-bundle-update finds no lock and fails. What the command should actually be is.

Code: [Select]
s6-rc-bundle-update -c /etc/s6/rc/compiled add default chrony

The -c argument merely specifies a path to the actual database you want to modify. I'll update the wiki entry.

Thanks for your reply, but when i run the command i get s6-rc-bundle: fatal: identifier chrony does not exist in database /etc/s6/rc/compiled although i have chrony-s6 installed
Title: Re: s6-rc-bundle-update: fatal: unable to take lock on /run/s6-rc/compiled
Post by: Dudemanguy on 09 November 2021, 15:49:40
I double checked and it's actually "chronyd" heh.
Title: Re: s6-rc-bundle-update: fatal: unable to take lock on /run/s6-rc/compiled
Post by: sn on 09 November 2021, 15:54:16
I double checked and it's actually "chronyd" heh.

It works now. Thanks for the help!