[artix-general] inadyn-openrc package request

Xavier B. somenxavier at posteo.net
Thu Dec 23 19:01:50 CET 2021


An off-topic question: how to make an -openrc package. Is it enough to create /etc/init.d/ file? Or I have to put some /etc/conf.d/ file? What's the role of the second?

Thanks,

On Thu, 23 Dec 2021 11:17:27 -0300
Chris Cromer <cromer at artixlinux.org> ha escrit:

> Thank you for sharing this. Considering that inadyn is not in arch's nor artix's repos, an openrc package should go to the AUR instead of our repos. It doesn't make sense to have packages for services that are not in our repos.
> 
> ⁣--
> Chris Cromer
> Artix Linux Developer​
> 
> On Dec 23, 2021, 4:52 AM, at 4:52 AM, "Xavier B." <somenxavier at posteo.net> wrote:
> >After some tries I think this works:
> >
> >#!/sbin/openrc-run
> >name=$RC_SVCNAME
> >description="DynDNS client"
> >cfgfile="/etc/$RC_SVCNAME.conf"
> >command="/bin/$RC_SVCNAME"
> >command_args="-f $cfgfile"
> >command_user="inadynuser"
> >supervisor="supervise-daemon"
> >command_args_foreground="--drop-privs=$command_user --foreground
> >--no-pidfile"
> >
> >depend() {
> >	need net
> >	use logger dns
> >	after bootmisc
> >}
> >
> >start_pre() {
> >checkpath --directory --owner $command_user:$command_user --mode 0755 \
> >                /run/$RC_SVCNAME /var/cache/$RC_SVCNAME
> >        $command --check-config -f $cfgfile
> >}
> >
> >
> >I attached here for soundness and for helping others in the same
> >problem. The code is borrow from alpine linux `inadyn-openrc` package
> >and some modifications.
> >
> >Previously I created a system-user `inadynuser` (see
> >https://wiki.archlinux.org/title/Users_and_groups#Example_adding_a_system_user)
> >
> >Xavier
> >
> >
> >On Thu, 25 Nov 2021 21:29:32 +0100
> >"Xavier B." <somenxavier at posteo.net> ha escrit:
> >
> >> Hi,
> >> 
> >> I installed inadyn via AUR (inadyn-fork). Is it possible to create an
> >-openrc package associated with it? Can we adapt somehow the alpine
> >package
> >[https://git.alpinelinux.org/aports/tree/community/inadyn?h=master]?
> >> 
> >> Thanks,
> >> Xavier
> >> 
> >> PS: I'm just a user 
> >-- 
> >artix-general mailing list
> >artix-general at artixlinux.org
> >https://lists.artixlinux.org/listinfo/artix-general


More information about the artix-general mailing list