1

I have a service called xboxdrvd that is triggered (and only activated/deactivated) by a udev rule, however always calling rc-status I got that the service was started on "manual" runlevel:

rc-status

The hotplugged is not for that type of events? I did read the gentoo docs, but there is not so much thing on there.

1
  • Please post the output of cat /etc/rc.conf | grep "rc_hotplug=" Commented Mar 23, 2022 at 9:23

1 Answer 1

1

For OpenRC to display a service as being hotplugged, IN_HOTPLUG=1 must be in the environment when the service is being started, like so:

IN_HOTPLUG=1 /etc/init.d/myservice start 

Source: I looked at OpenRC’s code to figure this out for a project of mine; this is the relevant line: https://github.com/OpenRC/openrc/blob/301161a7a4bda27c7ebd54c537dfec0cbc926365/src/rc/openrc-run.c#L610

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.