[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: question about rc.local



On 11/03/2023 00:29, Vincent Lefevre wrote:
On 2023-03-10 09:58:55 -0500, Greg Wooledge wrote:
On Fri, Mar 10, 2023 at 04:55:03PM +0200, Anssi Saari wrote:
Nicolas George <george@nsup.org> writes:

Anssi Saari (12023-03-09):
After=network.target

# /usr/lib/systemd/system/rc-local.service.d/debian.conf
[Unit]
# not specified by LSB, but has been behaving that way in Debian under SysV
# init and upstart
After=network-online.target

True, I only checked the man page which doesn't mention
network-online.target, only network.target.

The man pages are most likely from upstream, and don't include the
changes provided by Debian (in debian.conf).

It would be useful to have the man page patched (as sometimes done),
otherwise the user could be surprised.

Moreover, the above path
   /usr/lib/systemd/system/rc-local.service.d/debian.conf
is incorrect. This should be
   /lib/systemd/system/rc-local.service.d/debian.conf

On recent Debian systems (certainly from Bookworm) /lib is a symlink to /usr/lib so the canonical path is /usr/lib/systemd/system/rc-local.service.d/debian.conf
https://wiki.debian.org/UsrMerge
--
John


Reply to: