Artix Linux Forum

Init systems => dinit => Topic started by: negative on 10 March 2023, 08:21:28

Title: minor documentation issue in installation manual
Post by: negative on 10 March 2023, 08:21:28
https://wiki.artixlinux.org/Main/Installation

on section:

Quote
dinit
install connman and optionally a front-end:

 pacman -S connman-dinit connman-gtk
 ln -s ../connmand /etc/dinit.d/boot.d/

 ln -s ../connmand /etc/dinit.d/boot.d/ < what is the expected service dir here?
Title: Re: minor documentation issue in installation manual
Post by: davmac on 12 March 2023, 10:32:38
ln -s ../connmand /etc/dinit.d/boot.d/ < what is the expected service dir here?

That is a literal command. It will create a link called "connmand" in /etc/dinit.d/boot.d, which makes the connmand service a dependency of the "boot" service.
Title: Re: minor documentation issue in installation manual
Post by: negative on 13 March 2023, 01:19:01
true. it just looks inconsistent with the rest of the examples in this documentation.
Title: Re: minor documentation issue in installation manual
Post by: Wolzly on 13 March 2023, 10:46:37
I guess it could read:

 ln -s /etc/dinit.d/connmand /etc/dinit.d/boot.d/

But technically what's written is correct as the command tries to create a link in /etc/dinit.d/boot.d/ and it looks for the file it's linking (connmand) one directory up from where it's putting the link (which is what the "../" does) I didn't realize ln behaves this way.  You'd think by putting ../connmand that ln would look one directory up from wherever you are executing the command but I guess that's not the case.