Ubuntu 1804 install failure - fixed

Moderators: Site Moderators, FAHC Science Team

Ubuntu 1804 install failure - fixed

Postby warmDomij » Mon Apr 06, 2020 7:42 pm

Downloaded the 7.5.1 packages and I get the install on the fahclient complaining on Ubuntu 1804 LTS I'm running: -
update-rc.d: error: cannot find a LSB script for FAHClient
...apparently the .deb installer doesn't do SystemD; not that I blame it, my personal preference is still init.

SystemD detection is relatively trivial:
Code: Select all
freedesktop.org/software/systemd/man/sd_booted.html


Snatched a copy of the service script someone posted here: -
Code: Select all
gist.github.com/lopezpdvn/81c8bb867c51292045c6#file-fahclient-service


Overview: -
    Extracted the .deb manually
    Added the fahclient.service as a source file in the data archive as ./usr/share/doc/fahclient/fahclient.service.example.systemd - probably fair to have attribution if used publicly.
    Modified "preinst" to detect SystemD and run appropriate service stop if update (runs under dash shell on Ubuntu 1804)
    Modified "postinst" to detect SystemD, and copy the example script above, then install/enable if that option is selected
    Modified "postrm" to detect SystemD, stop/disable the service, and remove the script (runs under dash shell on Ubuntu 1804)
    Added the updated scripts back into the control archive.
    Copied the .deb and used ar r to replace the updated archives in the new .deb

Installs, runs, works better if you say yes to "automatic startup" :)

Can post the diffs or throw it in git if it's useful to anyone.
warmDomij
 
Posts: 1
Joined: Mon Apr 06, 2020 7:09 pm

Return to V7.5.1 Public Release Windows/Linux/MacOS X

Who is online

Users browsing this forum: No registered users and 1 guest

cron