On 8/23/19 8:22 AM, Dmitry Bogatov wrote: > > control: tags -1 +confirmed > control: reassign -1 initscripts > control: severity -1 normal > > [2019-08-21 15:22] Thorsten Glaser <[email protected]> >> Package: insserv >> Version: 1.20.0-2 >> Severity: minor >> >> Unsure which package, but: >> >> [???] >> Starting OpenBSD Secure Shell server: sshd. >> Stopping boot logger: bootlogd. >> Starting TLS tunnels: >> Setting sysfs variables.... >> Starting Tomcat 9 servlet engine:. >> User-mode networking switch disabled ... (warning). >> Starting Micro Name Service Cache Daemon: unscd. >> Starting libvirt logging daemon: virtlogd. >> Starting libvirt management daemon: libvirtd. >> Starting Remote Desktop Protocol server: xrdp-sesman xrdp[20190821-15:20:30] >> [DEBUG] Testing if xrdp can liste >> n on 0.0.0.0 port 3389. >> [20190821-15:20:30] [DEBUG] Closed socket 7 (AF_INET6 :: port 3389) >> . >> Running local boot scripts (/etc/rc.local) >> <13>Aug 21 15:20:33 rc.local[4234]: All done. >> >> This is clearly too early. > > Definitely. > > I added "Required-Start: $all" into /etc/init.d/stop-bootlogd and run > insserv(8). After that `stop-bootlogd` got ordered last. But there is > one issue. > > This way, both `rc.local' and `bootlogd` depend on $all, but their > relation undefined. Well, it is lexicographic, but it plainly wrong. > > Attempt to add "Required-Start: $all rc.local" causes multitude error > messages from insserv: > > insserv: Starting stop-bootlogd depends on rc.local and therefore on > system facility `$all' which can not be true > > @Thorsten Does it solves problem for you? > > @Jesse Is is possible to specify dependencies between two scripts that > both depends on $all? > >
I don't think it is possible to fine-tune dependencies between scripts when "$all" is used. The "$all" variable is supposed to be a very special case when everything else is started or handled. I'm not sure if we have a good way to specify two or more scripts that are all handled last.

