FS#69339 - [uptimed] Unit file failed to locate executable
Attached to Project:
Community Packages
Opened by Slash Quit (SlashQuit) - Friday, 15 January 2021, 19:42 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 16 January 2021, 00:59 GMT
Opened by Slash Quit (SlashQuit) - Friday, 15 January 2021, 19:42 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 16 January 2021, 00:59 GMT
|
Details
Unit file uptimed.service ExecStart points to wrong
location.
Version: 0.4.3 The upstream unit file (in the tar.tz) ./etc/uptimed.service.in contains the line; ExecStart=@prefix@/sbin/uptimed -f The Arch PKGBUILD ./configure line contains the param; --sbindir=/usr/bin But no adjustment to the uptimed.service file is performed during installation. This results in the binary being at "/usr/bin/uptimed", but the ExecStart line pointing to "/usr/sbin/uptimed". Possible solutions; 1. Adjust the uptimed.service to point to /usr/bin 2. Adjust the ./configure line in the PKGBUILD to point to /usr/sbin 3. Create a symlink from /usr/sbin/uptimed to /usr/bin/uptimed Steps to reproduce: 1. Start the uptimed daemon systemctl start uptimed View the journal journalctl |grep uptimed Jan 15 11:09:56 archgold systemd[328]: uptimed.service: Failed to locate executable /usr/sbin/uptimed: No such file or directory Jan 15 11:09:56 archgold systemd[328]: uptimed.service: Failed at step EXEC spawning /usr/sbin/uptimed: No such file or directory |
This task depends upon
Another 3rd party package had created the /usr/sbin/ and so I see it as a directory with only 2 files inside.
On a system without that other package, the /usr/sbin is indeed a symlink.