Add polkitd service

This commit is contained in:
Nathan Fisher 2023-04-19 00:06:00 -04:00
parent 1d20988d9d
commit a46145aa52
12 changed files with 23 additions and 0 deletions

3
config/polkitd.conf Normal file
View File

@ -0,0 +1,3 @@
# This configures the directives used for s6-log in the log service.
DIRECTIVES="n3 s2000000 T"

View File

@ -0,0 +1 @@
polkitd-srv

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1 @@
polkitd

9
sv/polkitd-log/run Normal file
View File

@ -0,0 +1,9 @@
#!/bin/execlineb -P
envfile /etc/s6/config/polkitd.conf
importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
foreground { install -d -o s6log -g s6log /var/log/polkitd }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/polkitd
}
foreground { install -d -o s6log -g s6log /run/log/polkitd }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/polkitd

View File

@ -0,0 +1 @@
0

1
sv/polkitd-log/type Normal file
View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1 @@
polkitd-log

2
sv/polkitd-srv/run Normal file
View File

@ -0,0 +1,2 @@
#!/bin/execlineb
exec /usr/pkg/lib/polkit-1/polkitd --no-debug

View File

@ -0,0 +1 @@
0

1
sv/polkitd-srv/type Normal file
View File

@ -0,0 +1 @@
longrun