On Fri, 10 May 2019 at 08:22, Pierre Labastie via lfs-dev <
[email protected]> wrote:

> Hi,
>
> I now build the systemd book. I may come back to SysV later, but ATM, I
> want
> to test the BLFS book, and the systemd revision has more thorough coverage
> than SysV.
>
> Since i'm new to systemd, I try various commands. That's how I realized
> there
> was a unit (man-db.timer) for running a daily update of the man database.
> So I
> enabled the unit, and after one day, I received an error concerning the
> associated service.
>
> Investigating, it turns out that /usr/bin/find is hardcoded in the unit,
> and
> we have find in /bin...
>
> I wonder how many units have such harcoded paths.
>
> Looking at man-db source, /usr/bin/find is hardcoded also in
> man-db.service.in. So the following sed is needed:
> sed -i 's@/usr/bin/find@/bin/find@' init/systemd/man-db.service.in


Wouldn't a symlink in /usr/bin be better?

Richard
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to