summaryrefslogtreecommitdiff
path: root/sliceweasel.lib.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2022-04-04 10:29:05 -0400
committerAndrew Cady <d@cryptonomic.net>2022-04-04 10:34:20 -0400
commitf887aebab9b0a25e1151b492cf131c391f33dab6 (patch)
tree123ef2269c54754d7552759fa800876cb4765694 /sliceweasel.lib.sh
parent7c17d07ac3c9213565345c6cf75cced5b592c318 (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-xsliceweasel.lib.sh7
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
137get_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
137get_current_group() 144get_current_group()
138{ 145{
139 read g < /proc/$$/cgroup 146 read g < /proc/$$/cgroup