[artix-general] inadyn-openrc package request

Xavier B. somenxavier at posteo.net
Thu Dec 23 08:50:33 CET 2021


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 


More information about the artix-general mailing list