This repository has been archived by the owner on Jul 13, 2024. It is now read-only.
fahclient_7.6.9 systemd service #1396
Labels
1.Type - Enhancement
Reported issue is an enhamcement.
3.Component - FAHClient
Reported issue relates to FAHClient.
4.OS - Debian
Reported issue occurs on Debian based OS (Debian, Mint, Ubuntu).
4.OS - Fedora
Reported issue occurs on Fedora based OS (Fedora, Red Hat, CentOS).
On mint 19.3, the init script chipped with fahclient_7.6.9_amd64.deb isn't well integrated with systemd: systemd think fahclient fail to start while it isn't.
To be able to manage fahclient with systemd I wrote a systemd service file based on observation of the init script behaviour and on this thread : https://gist.github.com/lopezpdvn/81397197ffead57c2e98. I also added some parameters to increase security and ensure fahclient have lowest priority possible.
While I was writing this I figured out that sending a SIGUSR1 to fahclient actually stop the service instead of reloading it as expected (according to the reload function inside the init.d/FAHClient script).
I'm not sure if it is really usefull as the pid can be accessed through $MAINPID variable but I assume that fahclient should need it as it run a lot of parallel jobs.
It's a shame source aren't open, I could have dig a bit more on why SIGUSR1 signals kill fahclient instead of reloading and spending less time try to finding it. Anyway it would also be interesting to take a look at it and more specifically to security as it aim to run on a lot of machine. I would be sad to discover that I'm actually computing hashes instead of folding proteins :)
Love the idea of this project, hope it will be fully open oneday: close source to make harder to write exploit is never a good bet.
The text was updated successfully, but these errors were encountered: