diff options
author | Andrew Cady <d@cryptonomic.net> | 2022-04-04 10:29:05 -0400 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2022-04-04 10:34:20 -0400 |
commit | f887aebab9b0a25e1151b492cf131c391f33dab6 (patch) | |
tree | 123ef2269c54754d7552759fa800876cb4765694 /sliceweasel.lib.sh | |
parent | 7c17d07ac3c9213565345c6cf75cced5b592c318 (diff) |
assume firestart cgroup layout
also:
ioslay-mgr will warn once when ff is not running, but not
spam logs with errors
Diffstat (limited to 'sliceweasel.lib.sh')
-rwxr-xr-x | sliceweasel.lib.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sliceweasel.lib.sh b/sliceweasel.lib.sh index 28091a0..d9a93c5 100755 --- a/sliceweasel.lib.sh +++ b/sliceweasel.lib.sh | |||
@@ -134,6 +134,13 @@ get_uid() | |||
134 | ) | 134 | ) |
135 | } | 135 | } |
136 | 136 | ||
137 | get_firefox_cgroup_procs() | ||
138 | { | ||
139 | uid=$(get_uid) | ||
140 | [ "$uid" ] || return | ||
141 | echo /sys/fs/cgroup/user.slice/user-$uid.slice/user@$uid.service/app.slice/firefox.service/cgroup.procs | ||
142 | } | ||
143 | |||
137 | get_current_group() | 144 | get_current_group() |
138 | { | 145 | { |
139 | read g < /proc/$$/cgroup | 146 | read g < /proc/$$/cgroup |