13 Commits

Author SHA1 Message Date
13c0fc85d9 completely refactor service generation
Far too many changes to list, but having a ton of redundant files like
"type" were removed since they can be generated in the install script
instead. cg support is also added to every longrun.
2024-04-26 12:30:33 -05:00
131347b788 install.sh: use sed instead of cut
Better fix for the avahi-daemon edge case than as opposed to forcing an
extra log directory. -srv should only ever be at the end.
2024-03-14 19:56:04 -05:00
bdc85eb6ac install.sh: also check log directory count 2024-03-14 19:37:31 -05:00
441ce81954 avahi: add custom logging service
Missed in the -log refactor
2024-03-14 19:24:57 -05:00
e43dbfc803 avahi-daemon-srv: add hostname dependency
Fixes a race condition reported on the forum.
2024-03-14 14:57:02 -05:00
Alexander
09a504e555 cpupower/up: fix up script
Several command line switches were missing and the if blocks need to be
wrapped by foreground calls.
2023-12-31 17:50:36 -06:00
8f5148af0d mailman-srv: sort of fix
Well it was definitely broken before at least.
2023-08-29 20:57:25 -05:00
Edmund Noble
ef91b7b77c containerd-srv: set ulimit like in docker-srv
Patch from IRC.
2023-08-28 16:19:48 -05:00
8cb0a36d34 lxdm: add dependencies on tmpfiles
Reported in IRC.
2023-08-04 10:05:41 -05:00
653ff33a52 install.sh: install the conf even if there is no log
It's possible for a service to not have a log service but still need a
conf file (wireguard). Be sure to install the file in this case.
2023-08-04 10:02:16 -05:00
32c68f886d install.sh: allow custom log directories
For those few services that deviate from the template.
2023-08-03 22:25:25 -05:00
333c555768 install.sh: allow custom .conf files
If found, the template one won't be installed.
2023-08-03 22:25:25 -05:00
596d587c13 refactor log and conf installation from template
Since most of the log services and conf files are exactly the same, use
a template instead with the install script to ease handling instead of
copy and pasting. The special cases will need individual handling.
2023-08-03 21:50:43 -05:00
1571 changed files with 1363 additions and 2622 deletions

View File

@@ -1 +0,0 @@
acpid-srv

View File

@@ -1 +0,0 @@
acpid

View File

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

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
acpid-log

View File

@@ -1 +0,0 @@
longrun

View File

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

View File

@@ -1 +0,0 @@
oneshot

View File

@@ -1 +0,0 @@
apache-srv

View File

@@ -1 +0,0 @@
apache

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
apache-log

View File

@@ -1 +0,0 @@
longrun

View File

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

View File

@@ -1 +0,0 @@
apcupsd-srv

View File

@@ -1 +0,0 @@
apcupsd

View File

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

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
apcupsd-log

View File

@@ -1 +0,0 @@
longrun

View File

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

View File

@@ -1 +0,0 @@
oneshot

View File

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

View File

@@ -1 +0,0 @@
atd-srv

View File

@@ -1 +0,0 @@
atd

View File

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

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
atd-log

View File

@@ -1 +0,0 @@
longrun

View File

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

View File

@@ -1 +0,0 @@
atftpd-srv

View File

@@ -1 +0,0 @@
atftpd

View File

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

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
atftpd-log

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1,12 +0,0 @@
# This option is used to determine if rules & watches should be deleted on
# shutdown by loading the audit-stop file. This is beneficial in most cases
# so that a watch doesn't linger on a drive that is being unmounted. If
# set to no, it will NOT be cleaned up.
AUDITD_CLEAN_STOP=no
# This option determines whether or not to call augenrules to compile the
# audit rules from /etc/audit/rules.d. The default is "yes".
USE_AUGENRULES=yes
# This configures the directives used for s6-log in the log service.
DIRECTIVES="n3 s2000000 T"

View File

@@ -1 +0,0 @@
oneshot

View File

@@ -1 +0,0 @@
auditd-srv

View File

@@ -1 +0,0 @@
auditd

View File

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

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
auditd-log

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
autofs-srv

View File

@@ -1 +0,0 @@
autofs

View File

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

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
autofs-log

View File

@@ -1 +0,0 @@
longrun

View File

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

View File

@@ -1 +0,0 @@
avahi-daemon-srv

View File

@@ -1 +0,0 @@
avahi-daemon

View File

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

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
avahi-daemon-log

View File

@@ -1 +0,0 @@
longrun

View File

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

View File

@@ -1 +0,0 @@
oneshot

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
bitlbee-srv

View File

@@ -1 +0,0 @@
bitlbee

View File

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

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
bitlbee-log

View File

@@ -1 +0,0 @@
longrun

View File

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

View File

@@ -1 +0,0 @@
bluetoothd-srv

View File

@@ -1 +0,0 @@
bluetoothd

View File

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

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
bluetoothd-log

View File

@@ -1 +0,0 @@
longrun

View File

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

View File

@@ -1 +0,0 @@
boinc-srv

View File

@@ -1 +0,0 @@
boinc

View File

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

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
boinc-log

View File

@@ -1 +0,0 @@
longrun

View File

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

View File

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

View File

@@ -1 +0,0 @@
boltd-srv

View File

@@ -1 +0,0 @@
boltd

View File

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

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
boltd-log

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
brltty-srv

View File

@@ -1 +0,0 @@
brltty

View File

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

View File

@@ -1 +0,0 @@
longrun

View File

@@ -1 +0,0 @@
brltty-log

View File

@@ -1 +0,0 @@
longrun

View File

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

View File

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

View File

@@ -1 +0,0 @@
bumblebeed-srv

View File

@@ -1 +0,0 @@
bumblebeed

Some files were not shown because too many files have changed in this diff Show More