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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.artixlinux.org/archives/artix-general/attachments/20211223/29a08c98/attachment.htm>
More information about the artix-general
mailing list