Skip to content

Conversation

petersilva
Copy link
Contributor

close #1461

This is option 1 discussed in #1461. I don't think it should be merged... just want it to sit here for people to try out.
and think about. I want this PR to be in draft state an not get merged... for a month or two at least.

Add option setting cgroupOverride, example usage:

cgroupOverride /sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/app.slice/metpx-sr3.service

this means that when sr3 starts up a process, either by analyst intervention or sr3 sanity, it will add the processes launched to this cgroup. systemD uses this group, so when starting up entire thing with systemD it will see what is already running. so systemD view and sr3 view of which processes are running should be consistent now.

otoh... if systemd things the unit is stopped, it does not look at the cgroup, so it will not see things running if they are started manually. once it is started though, it does see the ones manually started before.

~
~

Add option setting cgroupOverride, example usage:

cgroupOverride /sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/app.slice/metpx-sr3.service

this means that when sr3 starts up a process, either by analyst intervention
or sr3 sanity, it will add the processes launched to this cgroup.
systemD uses this group, so when starting up entire thing with systemD it will see what is already
running.  so systemD view and sr3 view of which processes are running should be consistent now.

otoh... if systemd things the unit is stopped, it does not look at the cgroup, so it will not
see things running if they are started manually.  once it is started though, it does see
the ones manually started before.

~
~
Copy link

Test Results

243 tests   242 ✅  1m 40s ⏱️
  1 suites    1 💤
  1 files      0 ❌

Results for commit 5f3f32f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sr3 started with systemd and without, not noticing each other.

1 participant