added runit scripts

This commit is contained in:
tomit4 2022-02-23 12:16:48 -08:00
parent 2e437cd329
commit c65de416de
81 changed files with 114 additions and 0 deletions

2
runit_scripts/auto-cpufreq/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec /usr/bin/auto-cpufreq --daemon

View file

@ -0,0 +1 @@
23175

View file

@ -0,0 +1 @@
run

Binary file not shown.

2
runit_scripts/docker/log/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec svlogd -tt /var/log/svlog/docker

View file

View file

@ -0,0 +1 @@
29901

View file

@ -0,0 +1 @@
run

Binary file not shown.

8
runit_scripts/docker/run Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
[ -r conf ] && . ./conf
modprobe -q loop || exit 1
mountpoint -q /sys/fs/cgroup/systemd || {
mkdir -p /sys/fs/cgroup/systemd;
mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd;
}
exec chpst -o 1048576 -p 1048576 dockerd $OPTS 2>&1

View file

View file

@ -0,0 +1 @@
6211

View file

@ -0,0 +1 @@
run

Binary file not shown.

2
runit_scripts/mariadb/log/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec svlogd -tt /var/log/svlog/mariadb

View file

View file

@ -0,0 +1 @@
30457

View file

@ -0,0 +1 @@
run

Binary file not shown.

4
runit_scripts/mariadb/run Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
[ ! -d /run/mysqld ] && mkdir -p /run/mysqld
chown mysql:mysql /run/mysqld
exec chpst -u mysql:mysql mysqld --user=mysql 2>&1

View file

View file

@ -0,0 +1 @@
30458

View file

@ -0,0 +1 @@
run

Binary file not shown.

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec svlogd -tt /var/log/svlog/nvidia_undervolt

View file

@ -0,0 +1 @@
31752

View file

@ -0,0 +1 @@
run

Binary file not shown.

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec /usr/bin/nvidia-smi -pl 125

View file

@ -0,0 +1 @@
down

Binary file not shown.

View file

View file

View file

View file

2
runit_scripts/openvpn/log/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec svlogd -tt /var/log/svlog/openvpn

View file

View file

@ -0,0 +1 @@
32265

View file

@ -0,0 +1 @@
run

Binary file not shown.

2
runit_scripts/openvpn/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
exec /usr/bin/openvpn --config /home/brian/.config/protonvpn/protonvpn_configs/us-free-02.protonvpn.com.udp.ovpn --auth-user-pass /home/brian/.config/protonvpn/protonvpn.txt

View file

View file

@ -0,0 +1 @@
32266

View file

@ -0,0 +1 @@
run

Binary file not shown.

View file

@ -0,0 +1,19 @@
# Configuration file for the PostgreSQL server.
# PostgreSQL's database directory
PGROOT="/var/lib/postgres"
# PostgreSQL's log file.
PGLOG="/var/log/postgresql.log"
# Passed to initdb if necessary
INITOPTS="-A peer --auth-host=md5 --auth-local=peer --locale en_US.UTF-8"
# Extra options to run postmaster with, e.g.:
# -N is the maximal number of client connections
# -B is the number of shared buffers and has to be at least 2x the value for -N
# Please read the man-page to postmaster for more options. Many of these options
# can be set directly in the configuration-file.
#PGOPTS="-N 512 -B 1024"
#
mkdir -p /run/postgresql/ && chown postgres:postgres /run/postgresql

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec svlogd -tt /var/log/svlog/postgresql

View file

@ -0,0 +1 @@
962

View file

@ -0,0 +1 @@
run

Binary file not shown.

25
runit_scripts/postgresql/run Executable file
View file

@ -0,0 +1,25 @@
#!/bin/sh
[ -r conf ] && . ./conf
: ${PGDATA:="$PGROOT/data"}
if [ "$PGROOT" != "/var/lib/postgres" ]; then
echo "Creating symlink /var/lib/postgres -> $PGROOT"
ln -sf "$PGROOT" /var/lib/postgres
fi
if [ ! -d "$PGDATA" ]; then
echo "Initializing database in $PGDATA"
mkdir -p "$PGDATA"
chown -R postgres:postgres "$PGDATA"
chmod 777 "$PGDATA"
su - postgres -m -c "/usr/bin/initdb $INITOPTS -D '$PGDATA'" >/dev/null
if [ -f /etc/postgresql/postgresql.conf ]; then
ln -sf /etc/postgresql/postgresql.conf "$PGDATA/postgresql.conf"
fi
fi
exec chpst -u postgres:postgres postgres -D "$PGDATA" $PGOPTS 2>&1

View file

View file

@ -0,0 +1 @@
963

View file

@ -0,0 +1 @@
run

Binary file not shown.

2
runit_scripts/privoxy/log/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec svlogd -tt /var/log/svlog/privoxy

View file

View file

@ -0,0 +1 @@
1600

View file

@ -0,0 +1 @@
run

Binary file not shown.

2
runit_scripts/privoxy/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec chpst -u privoxy:privoxy privoxy --no-daemon /etc/privoxy/config 2>&1

View file

View file

@ -0,0 +1 @@
1601

View file

@ -0,0 +1 @@
run

Binary file not shown.

2
runit_scripts/tor/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec tor --quiet --runasdaemon 0 2>&1

View file

View file

@ -0,0 +1 @@
3743

View file

@ -0,0 +1 @@
run

Binary file not shown.

3
runit_scripts/ufw/finish Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
set -e
exec /usr/lib/ufw/ufw-init stop

4
runit_scripts/ufw/run Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
set -e
/usr/lib/ufw/ufw-init start quiet
exec chpst -b ufw pause

View file

View file

@ -0,0 +1 @@
5054

View file

@ -0,0 +1 @@
run

Binary file not shown.