Hi Artix folk,
This my second post in a Linux forum, so I apologize in advance for any ambiguity or mistake.
I'm running the LXQT - Openrc version of Artix. A few days ago I wanted to set up and run ddclient daemon. But I faced many problems.
First, I didn't know that there is a ddclient-openrc script that should be installed along with ddclient. I think this should be added as a dependency because ddclient will not run without it.
When I issued the command:
$ sudo rc-service ddclient start
It gave me an error message that I don't exactly remember, but it was something like "ddclient is not a known service".
I thought it was a configuration problem, so I spent a lot of time playing with the "/etc/ddclient/ddclient.conf" file without any success. Then; I discovered by chance that there is an openrc script on the repositories, so I installed it; but another problem arose.
When I tried to start ddclient service again, I got this:
* checkpath: owner `ddclient:ddclient' not found
* ERROR: ddclient failed to start
While waiting for my account at the Artix forums to be activated by admin, I searched online for a similar problem, and I ironically found a bug report related to systemd at this RedHat site
I followed the solution there and issued the commands:
$ sudo mkdir /var/run/ddclient
$ sudo chown ddclient:ddclient /var/run/ddclient
But again, I received this output, as the ddclient user and group were not created automatically:
chown: invalid user: ‘ddclient:ddclient’
After creating them manually, everything ran ok:
$ sudo useradd ddclient
$ sudo usermod -a -G ddclient ddclient
$ sudo chown ddclient:ddclient /var/run/ddclient
Finally;
$ sudo rc-service ddclient start
* /etc/ddclient/ddclient.conf: correcting owner
* /run/ddclient: correcting mode
* /var/cache/ddclient: correcting mode
* /var/cache/ddclient: correcting owner
* Starting ddclient ... [ ok ]
Was there something I did wrong from the beginning? Or is it a kind of bug?
Sorry if I elaborated a bit, and thanks for your patience.