On 2021.03.18 14:36, Grant Taylor wrote:
Hi,

Do services started in the "boot" runlevel continue to run in the "default" runlevel?

Or do they get stopped as part of transitioning from the "boot" runlevel to the "default" runlevel? (Or any other runlevel that doesn't include the service.

I'm wondering about having two things that are very similar (as in use the same ports), but distinctly different (different configurations) with the following:

myService-boot    | boot
myService-default |      default

Will myService-boot start and run during boot, then stop when the system goes into the default runlevel?

My expectation is that OpenRC will (try to) start myService-default when the system enters the default runlevel. But it will fail if myService-boot is still running.
That is my expectation. I don't see any automatic stopping of services. Even the services in the shutdown runlevel get started - even though their starting is actually stopping other stuff.

Do an rc-status (you might need to explicitly do "rc-status boot") and see all the boot runlevel services are still running (unless you explicitly stopped them.) Can you explicitly set up myService-default to explicitly check if myService-boot is running, and if so, stop it before starting itself?

Jack

Reply via email to