Re: I need to start a service with OpenRC, whats a Runlevel
Reply #4 –
For the name of the service, you can look in the directory /etc/init.d which is where the scripts are installed. Also you can use pacman to list the files of the package:
$ pacman -Ql ufw-openrc
ufw-openrc /etc/
ufw-openrc /etc/conf.d/
ufw-openrc /etc/conf.d/ufw
ufw-openrc /etc/init.d/
ufw-openrc /etc/init.d/ufw
So most likely you would do something like:
$ sudo rc-update add ufw default
* service ufw added to runlevel default
$ rc-update |grep ufw
ufw | default
The rc-update command allows you to see what services are enabled and for what run levels. Generally most user stuff will go in default. If it doesn't start early enough try it in another run level like boot but as not everything else will be running then it may not work at all if it is started too early in the boot sequence, use your own judgement according to the type of service and it's purpose. As you see from the example the names don't have .service appended to them though.
$ pacman -Ql openrc |grep man8
should give you the names of the most useful OpenRC man pages if you want to study more!