added runit scripts
This commit is contained in:
parent
2e437cd329
commit
c65de416de
81 changed files with 114 additions and 0 deletions
2
runit_scripts/auto-cpufreq/run
Executable file
2
runit_scripts/auto-cpufreq/run
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /usr/bin/auto-cpufreq --daemon
|
||||
0
runit_scripts/auto-cpufreq/supervise/lock
Normal file
0
runit_scripts/auto-cpufreq/supervise/lock
Normal file
1
runit_scripts/auto-cpufreq/supervise/pid
Normal file
1
runit_scripts/auto-cpufreq/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
23175
|
||||
1
runit_scripts/auto-cpufreq/supervise/stat
Normal file
1
runit_scripts/auto-cpufreq/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/auto-cpufreq/supervise/status
Normal file
BIN
runit_scripts/auto-cpufreq/supervise/status
Normal file
Binary file not shown.
2
runit_scripts/docker/log/run
Executable file
2
runit_scripts/docker/log/run
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec svlogd -tt /var/log/svlog/docker
|
||||
0
runit_scripts/docker/log/supervise/lock
Normal file
0
runit_scripts/docker/log/supervise/lock
Normal file
1
runit_scripts/docker/log/supervise/pid
Normal file
1
runit_scripts/docker/log/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
29901
|
||||
1
runit_scripts/docker/log/supervise/stat
Normal file
1
runit_scripts/docker/log/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/docker/log/supervise/status
Normal file
BIN
runit_scripts/docker/log/supervise/status
Normal file
Binary file not shown.
8
runit_scripts/docker/run
Executable file
8
runit_scripts/docker/run
Executable 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
|
||||
0
runit_scripts/docker/supervise/lock
Normal file
0
runit_scripts/docker/supervise/lock
Normal file
1
runit_scripts/docker/supervise/pid
Normal file
1
runit_scripts/docker/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
6211
|
||||
1
runit_scripts/docker/supervise/stat
Normal file
1
runit_scripts/docker/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/docker/supervise/status
Normal file
BIN
runit_scripts/docker/supervise/status
Normal file
Binary file not shown.
2
runit_scripts/mariadb/log/run
Executable file
2
runit_scripts/mariadb/log/run
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec svlogd -tt /var/log/svlog/mariadb
|
||||
0
runit_scripts/mariadb/log/supervise/lock
Normal file
0
runit_scripts/mariadb/log/supervise/lock
Normal file
1
runit_scripts/mariadb/log/supervise/pid
Normal file
1
runit_scripts/mariadb/log/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
30457
|
||||
1
runit_scripts/mariadb/log/supervise/stat
Normal file
1
runit_scripts/mariadb/log/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/mariadb/log/supervise/status
Normal file
BIN
runit_scripts/mariadb/log/supervise/status
Normal file
Binary file not shown.
4
runit_scripts/mariadb/run
Executable file
4
runit_scripts/mariadb/run
Executable 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
|
||||
0
runit_scripts/mariadb/supervise/lock
Normal file
0
runit_scripts/mariadb/supervise/lock
Normal file
1
runit_scripts/mariadb/supervise/pid
Normal file
1
runit_scripts/mariadb/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
30458
|
||||
1
runit_scripts/mariadb/supervise/stat
Normal file
1
runit_scripts/mariadb/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/mariadb/supervise/status
Normal file
BIN
runit_scripts/mariadb/supervise/status
Normal file
Binary file not shown.
2
runit_scripts/nvidia_undervolt/log/run
Executable file
2
runit_scripts/nvidia_undervolt/log/run
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec svlogd -tt /var/log/svlog/nvidia_undervolt
|
||||
0
runit_scripts/nvidia_undervolt/log/supervise/lock
Normal file
0
runit_scripts/nvidia_undervolt/log/supervise/lock
Normal file
1
runit_scripts/nvidia_undervolt/log/supervise/pid
Normal file
1
runit_scripts/nvidia_undervolt/log/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
31752
|
||||
1
runit_scripts/nvidia_undervolt/log/supervise/stat
Normal file
1
runit_scripts/nvidia_undervolt/log/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/nvidia_undervolt/log/supervise/status
Normal file
BIN
runit_scripts/nvidia_undervolt/log/supervise/status
Normal file
Binary file not shown.
2
runit_scripts/nvidia_undervolt/run
Executable file
2
runit_scripts/nvidia_undervolt/run
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /usr/bin/nvidia-smi -pl 125
|
||||
0
runit_scripts/nvidia_undervolt/supervise/lock
Normal file
0
runit_scripts/nvidia_undervolt/supervise/lock
Normal file
0
runit_scripts/nvidia_undervolt/supervise/pid
Normal file
0
runit_scripts/nvidia_undervolt/supervise/pid
Normal file
1
runit_scripts/nvidia_undervolt/supervise/stat
Normal file
1
runit_scripts/nvidia_undervolt/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
down
|
||||
BIN
runit_scripts/nvidia_undervolt/supervise/status
Normal file
BIN
runit_scripts/nvidia_undervolt/supervise/status
Normal file
Binary file not shown.
0
runit_scripts/openvpn/current
Normal file
0
runit_scripts/openvpn/current
Normal file
0
runit_scripts/openvpn/lock
Normal file
0
runit_scripts/openvpn/lock
Normal file
0
runit_scripts/openvpn/log/current
Normal file
0
runit_scripts/openvpn/log/current
Normal file
0
runit_scripts/openvpn/log/lock
Normal file
0
runit_scripts/openvpn/log/lock
Normal file
2
runit_scripts/openvpn/log/run
Executable file
2
runit_scripts/openvpn/log/run
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec svlogd -tt /var/log/svlog/openvpn
|
||||
0
runit_scripts/openvpn/log/supervise/lock
Normal file
0
runit_scripts/openvpn/log/supervise/lock
Normal file
1
runit_scripts/openvpn/log/supervise/pid
Normal file
1
runit_scripts/openvpn/log/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
32265
|
||||
1
runit_scripts/openvpn/log/supervise/stat
Normal file
1
runit_scripts/openvpn/log/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/openvpn/log/supervise/status
Normal file
BIN
runit_scripts/openvpn/log/supervise/status
Normal file
Binary file not shown.
2
runit_scripts/openvpn/run
Executable file
2
runit_scripts/openvpn/run
Executable 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
|
||||
0
runit_scripts/openvpn/supervise/lock
Normal file
0
runit_scripts/openvpn/supervise/lock
Normal file
1
runit_scripts/openvpn/supervise/pid
Normal file
1
runit_scripts/openvpn/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
32266
|
||||
1
runit_scripts/openvpn/supervise/stat
Normal file
1
runit_scripts/openvpn/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/openvpn/supervise/status
Normal file
BIN
runit_scripts/openvpn/supervise/status
Normal file
Binary file not shown.
19
runit_scripts/postgresql/conf
Normal file
19
runit_scripts/postgresql/conf
Normal 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
|
||||
2
runit_scripts/postgresql/log/run
Executable file
2
runit_scripts/postgresql/log/run
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec svlogd -tt /var/log/svlog/postgresql
|
||||
0
runit_scripts/postgresql/log/supervise/lock
Normal file
0
runit_scripts/postgresql/log/supervise/lock
Normal file
1
runit_scripts/postgresql/log/supervise/pid
Normal file
1
runit_scripts/postgresql/log/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
962
|
||||
1
runit_scripts/postgresql/log/supervise/stat
Normal file
1
runit_scripts/postgresql/log/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/postgresql/log/supervise/status
Normal file
BIN
runit_scripts/postgresql/log/supervise/status
Normal file
Binary file not shown.
25
runit_scripts/postgresql/run
Executable file
25
runit_scripts/postgresql/run
Executable 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
|
||||
0
runit_scripts/postgresql/supervise/lock
Normal file
0
runit_scripts/postgresql/supervise/lock
Normal file
1
runit_scripts/postgresql/supervise/pid
Normal file
1
runit_scripts/postgresql/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
963
|
||||
1
runit_scripts/postgresql/supervise/stat
Normal file
1
runit_scripts/postgresql/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/postgresql/supervise/status
Normal file
BIN
runit_scripts/postgresql/supervise/status
Normal file
Binary file not shown.
2
runit_scripts/privoxy/log/run
Executable file
2
runit_scripts/privoxy/log/run
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec svlogd -tt /var/log/svlog/privoxy
|
||||
0
runit_scripts/privoxy/log/supervise/lock
Normal file
0
runit_scripts/privoxy/log/supervise/lock
Normal file
1
runit_scripts/privoxy/log/supervise/pid
Normal file
1
runit_scripts/privoxy/log/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
1600
|
||||
1
runit_scripts/privoxy/log/supervise/stat
Normal file
1
runit_scripts/privoxy/log/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/privoxy/log/supervise/status
Normal file
BIN
runit_scripts/privoxy/log/supervise/status
Normal file
Binary file not shown.
2
runit_scripts/privoxy/run
Executable file
2
runit_scripts/privoxy/run
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec chpst -u privoxy:privoxy privoxy --no-daemon /etc/privoxy/config 2>&1
|
||||
0
runit_scripts/privoxy/supervise/lock
Normal file
0
runit_scripts/privoxy/supervise/lock
Normal file
1
runit_scripts/privoxy/supervise/pid
Normal file
1
runit_scripts/privoxy/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
1601
|
||||
1
runit_scripts/privoxy/supervise/stat
Normal file
1
runit_scripts/privoxy/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/privoxy/supervise/status
Normal file
BIN
runit_scripts/privoxy/supervise/status
Normal file
Binary file not shown.
2
runit_scripts/tor/run
Executable file
2
runit_scripts/tor/run
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec tor --quiet --runasdaemon 0 2>&1
|
||||
0
runit_scripts/tor/supervise/lock
Normal file
0
runit_scripts/tor/supervise/lock
Normal file
1
runit_scripts/tor/supervise/pid
Normal file
1
runit_scripts/tor/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
3743
|
||||
1
runit_scripts/tor/supervise/stat
Normal file
1
runit_scripts/tor/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/tor/supervise/status
Normal file
BIN
runit_scripts/tor/supervise/status
Normal file
Binary file not shown.
3
runit_scripts/ufw/finish
Executable file
3
runit_scripts/ufw/finish
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
exec /usr/lib/ufw/ufw-init stop
|
||||
4
runit_scripts/ufw/run
Executable file
4
runit_scripts/ufw/run
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
/usr/lib/ufw/ufw-init start quiet
|
||||
exec chpst -b ufw pause
|
||||
0
runit_scripts/ufw/supervise/lock
Normal file
0
runit_scripts/ufw/supervise/lock
Normal file
1
runit_scripts/ufw/supervise/pid
Normal file
1
runit_scripts/ufw/supervise/pid
Normal file
|
|
@ -0,0 +1 @@
|
|||
5054
|
||||
1
runit_scripts/ufw/supervise/stat
Normal file
1
runit_scripts/ufw/supervise/stat
Normal file
|
|
@ -0,0 +1 @@
|
|||
run
|
||||
BIN
runit_scripts/ufw/supervise/status
Normal file
BIN
runit_scripts/ufw/supervise/status
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue