This commit is contained in:
joborun linux 2024-04-06 19:36:11 +03:00
parent 6cbf696da0
commit 190ddc0209
300 changed files with 1348 additions and 0 deletions

8
LICENSE Normal file
View File

@ -0,0 +1,8 @@
ISC License:
Copyright (c) 2004-2010 by Internet Systems Consortium, Inc. ("ISC")
Copyright (c) 1995-2003 by Internet Software Consortium
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

View File

@ -0,0 +1 @@
/usr/lib/runit/sv/dhclient

View File

@ -0,0 +1 @@
/usr/lib/runit/sv/dhclient-wlan0

View File

@ -0,0 +1 @@
/usr/lib/runit/sv/ntpd

View File

@ -0,0 +1 @@
/usr/lib/runit/sv/wpa_supplicant

View File

@ -0,0 +1,8 @@
#!/bin/sh
sv check dbus >/dev/null || exit 1
# Create required dirs
[ ! -d /etc/NetworkManager/dispatcher.d ] && mkdir -m0755 -p /etc/NetworkManager/dispatcher.d
[ ! -d /etc/NetworkManager/VPN ] && mkdir -m0755 -p /etc/NetworkManager/VPN
[ ! -d /etc/NetworkManager/system-connections ] && mkdir -m0755 -p /etc/NetworkManager/system-connections
[ ! -d /var/lib/NetworkManager ] && mkdir -m0700 -p /var/lib/NetworkManager
exec NetworkManager -n > /dev/null 2>&1

6
usr/lib/runit/sv/acpid/log/run Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
exec 2>&1; set -e
[ -d /var/log/acpid ] || install -dm 755 /var/log/acpid
exec svlogd -tt /var/log/acpid

2
usr/lib/runit/sv/acpid/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec acpid -f 2>&1

View File

@ -0,0 +1,2 @@
BAUD_RATE=38400
TERM_NAME=linux

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

View File

@ -0,0 +1,16 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1 @@
/run/runit/supervise.agetty-console

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

View File

@ -0,0 +1,17 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
## from void below
## exec chpst -P ${GETTY} ${GETTY_ARGS} \
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1,8 @@
GETTY_ARGS="-L"
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux specific settings
GETTY_ARGS="${GETTY_ARGS} -8"
fi
BAUD_RATE=115200
TERM_NAME=vt100

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

View File

@ -0,0 +1,16 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1,9 @@
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux specific settings
if [ "${tty}" = "tty1" ]; then
GETTY_ARGS="--noclear"
fi
fi
BAUD_RATE=38400
TERM_NAME=linux

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

View File

@ -0,0 +1,16 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1 @@
/run/runit/supervise.agetty-tty1

View File

@ -0,0 +1,9 @@
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux specific settings
if [ "${tty}" = "tty1" ]; then
GETTY_ARGS="--noclear"
fi
fi
BAUD_RATE=38400
TERM_NAME=linux

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

View File

@ -0,0 +1,16 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1 @@
/run/runit/supervise.agetty-tty12

View File

@ -0,0 +1,9 @@
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux specific settings
if [ "${tty}" = "tty2" ]; then
GETTY_ARGS="--noclear"
fi
fi
BAUD_RATE=38400
TERM_NAME=linux

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

View File

@ -0,0 +1,16 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1 @@
/run/runit/supervise.agetty-tty2

View File

@ -0,0 +1,9 @@
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux specific settings
if [ "${tty}" = "tty1" ]; then
GETTY_ARGS="--noclear"
fi
fi
BAUD_RATE=38400
TERM_NAME=linux

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

View File

@ -0,0 +1,16 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1 @@
/run/runit/supervise.agetty-tty3

View File

@ -0,0 +1,9 @@
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux specific settings
if [ "${tty}" = "tty1" ]; then
GETTY_ARGS="--noclear"
fi
fi
BAUD_RATE=38400
TERM_NAME=linux

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

View File

@ -0,0 +1,16 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1 @@
/run/runit/supervise.agetty-tty4

View File

@ -0,0 +1,9 @@
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux specific settings
if [ "${tty}" = "tty1" ]; then
GETTY_ARGS="--noclear"
fi
fi
BAUD_RATE=38400
TERM_NAME=linux

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

View File

@ -0,0 +1,16 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1 @@
/run/runit/supervise.agetty-tty5

View File

@ -0,0 +1,9 @@
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux specific settings
if [ "${tty}" = "tty1" ]; then
GETTY_ARGS="--noclear"
fi
fi
BAUD_RATE=38400
TERM_NAME=linux

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

View File

@ -0,0 +1,16 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1 @@
/run/runit/supervise.agetty-tty6

View File

@ -0,0 +1,8 @@
GETTY_ARGS="-L"
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux specific settings
GETTY_ARGS="${GETTY_ARGS} -8"
fi
BAUD_RATE=115200
TERM_NAME=vt100

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

View File

@ -0,0 +1,16 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1 @@
/run/runit/supervise.agetty-ttyAMA0

View File

@ -0,0 +1,8 @@
GETTY_ARGS="-L"
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux specific settings
GETTY_ARGS="${GETTY_ARGS} -8"
fi
BAUD_RATE=115200
TERM_NAME=vt100

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

View File

@ -0,0 +1,16 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1 @@
/run/runit/supervise.agetty-ttyS0

View File

@ -0,0 +1,8 @@
GETTY_ARGS="-L"
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux specific settings
GETTY_ARGS="${GETTY_ARGS} -8"
fi
BAUD_RATE=115200
TERM_NAME=vt100

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

View File

@ -0,0 +1,16 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1 @@
/run/runit/supervise.agetty-ttyUSB0

3
usr/lib/runit/sv/alsa/finish Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
set -e
exec alsactl store

5
usr/lib/runit/sv/alsa/run Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
exec 2>&1
set -e
alsactl restore
exec chpst -b alsa pause

2
usr/lib/runit/sv/apache/finish Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
httpd -k graceful-stop

2
usr/lib/runit/sv/apache/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec httpd -k start -DFOREGROUND

2
usr/lib/runit/sv/apcupsd/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec apcupsd -b

2
usr/lib/runit/sv/at/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec atd -f

2
usr/lib/runit/sv/atftp/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec atftpd --user=atftp.atftp --daemon --no-fork

View File

@ -0,0 +1,9 @@
# 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"

View File

@ -0,0 +1,13 @@
#!/bin/sh -e
# Remove watches so shutdown works cleanly
test -f /etc/audit/audit-stop.rules || exit 0
test ! -r ./conf || . ./conf
case "$AUDITD_CLEAN_STOP" in
no|NO) exit 0 ;;
*) ;;
esac
exec auditctl -R /etc/audit/audit-stop.rules >/dev/null

12
usr/lib/runit/sv/auditctl/run Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh -e
test ! -r ./conf || . ./conf
case "$USE_AUGENRULES" in
no|NO) ;;
*) test ! -d /etc/audit/rules.d || augenrules >/dev/null ;;
esac
test ! -f /etc/audit/audit.rules || auditctl -R /etc/audit/audit.rules >/dev/null
exec chpst -b auditctl pause

2
usr/lib/runit/sv/auditd/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec auditd -n

View File

@ -0,0 +1,9 @@
if [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux specific settings
if [ "${tty}" = "tty1" ]; then
GETTY_ARGS="--noclear"
fi
fi
BAUD_RATE=38400
TERM_NAME=linux

View File

@ -0,0 +1,3 @@
#!/bin/sh
tty=${PWD##*-}
exec utmpset -w $tty

11
usr/lib/runit/sv/autologin/run Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
/usr/bin/getty -8 -J -o -a make ]; then
exec setsid ${GETTY} ${GETTY_ARGS} \
"${tty}" "${BAUD_RATE}" "${TERM_NAME}"

View File

@ -0,0 +1 @@
/run/runit/supervise.agetty-tty1

View File

@ -0,0 +1,6 @@
#!/bin/sh
# if dbus is enabled wait for it.
if [ -e /run/runit/service/dbus ]; then
sv check dbus > /dev/null || exit 1
fi
exec avahi-daemon -s

View File

@ -0,0 +1,8 @@
#!/bin/sh
[ ! -d /var/cache/backlight ] && mkdir /var/cache/backlight
[ ! -w /var/cache/backlight ] && chmod 755 /var/cache/backlight
for card in $(find /sys/class/backlight/ -type l); do
cp "/sys/class/backlight/$(basename "$card")/brightness" "/var/cache/backlight/$(basename "$card")-brightness-old"
done

8
usr/lib/runit/sv/backlight/run Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
for card in $(find /sys/class/backlight/ -type l); do
if [ -r "/var/cache/backlight/$(basename "$card")-brightness-old" ]; then
cp "/var/cache/backlight/$(basename "$card")-brightness-old" "/sys/class/backlight/$(basename "$card")/brightness"
fi
done
exec chpst -b backlight pause

2
usr/lib/runit/sv/bftpd/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec bftpd -D

View File

@ -0,0 +1,3 @@
#!/bin/sh
sv check dbus >/dev/null || exit 1
exec /usr/lib/bluetooth/bluetoothd -n >/dev/null

View File

@ -0,0 +1,11 @@
# Read default configuration
[ -f /etc/default/boinc-client ] && . /etc/default/boinc-client
# Override with global configuration
[ -f /etc/boinc-client.conf ] && . /etc/boinc-client.conf
BOINCEXE_NAME=${BOINCEXE_NAME:-boinc_client}
BOINCCMD_NAME=${BOINCCMD_NAME:-boinccmd}
BOINCUSER=${BOINCUSER:-boinc}
BOINCDIR=${BOINCDIR:-/var/lib/boinc}
LOGFILE=${LOGFILE:-/var/log/${BOINCEXE_NAME}.log}
ERRORLOG=${ERRORLOG:-/var/log/${BOINCEXE_NAME}_err.log}
OPTS="${BOINCOPTS} --dir ${BOINCDIR}"

8
usr/lib/runit/sv/boinc/run Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
[ -r conf ] && . ./conf
[ -d ${BOINCDIR} ] || mkdir -m 755 -p ${BOINCDIR}
[ -f ${LOGFILE} ] || touch ${LOGFILE}
[ -f ${ERRORLOG} ] || touch ${ERRORLOG}
chown --recursive ${BOINCUSER}:${BOINCUSER} ${BOINCDIR} ${LOGFILE} ${ERRORLOG}
exec 2>&1
exec chpst -u ${BOINCUSER} ${BOINCEXE_NAME} ${OPTS}

3
usr/lib/runit/sv/boltd/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
sv check dbus >/dev/null || exit 1
exec /usr/lib/boltd >dev/null 2>&1

3
usr/lib/runit/sv/brltty/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
mkdir -p /run/brltty || exit 1
exec brltty -n

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec bumblebeed --use-syslog

3
usr/lib/runit/sv/chrony/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
install -d -m750 -o chrony -g chrony /run/chrony
exec chronyd -n -u chrony

2
usr/lib/runit/sv/clamd/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec clamd --foreground=true

2
usr/lib/runit/sv/colord/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec chpst -u colord /usr/lib/colord 2>&1

3
usr/lib/runit/sv/connmand/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec connmand -n ${OPTS}

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec console-kit-daemon --no-daemon --debug

2
usr/lib/runit/sv/consul/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec consul agent --config-dir=/etc/consul.d

2
usr/lib/runit/sv/coturn/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec chpst -u turnserver:turnserver turnserver -c /etc/turnserver.conf --pidfile /var/tmp/turnserver.pid

15
usr/lib/runit/sv/cpupower/run Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
[ -r /etc/default/cpupower ] && . /etc/default/cpupower
# CPU speed
[ "$governor" ] && cpupower frequency-set -g "$governor"
[ "$max_freq" ] && cpupower frequency-set -u "$max_freq"
[ "$min_freq" ] && cpupower frequency-set -d "$min_freq"
[ "$freq" ] && cpupower frequency-set -f "$freq"
# CPU options
[ "$perf_bias" ] && cpupower set -b "$perf_bias"
[ "$mc_scheduler" ] && cpupower set -m "$mc_scheduler"
[ "$smp_scheduler" ] && cpupower set -s "$smp_scheduler"
exec chpst -b cpupower pause

2
usr/lib/runit/sv/cronie/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec crond -n 2>&1

3
usr/lib/runit/sv/cupsd/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
exec 2>&1
exec cupsd -f

View File

@ -0,0 +1,12 @@
# Specify which port to listen on for connections. (8080 by default)
#PORT=8080
# Run darkhttpd as given user/group ('http' by default)
#USER="http"
#GROUP="http"
# The root of the web directory (/srv/http by default)
#DIR="/srv/http"
# Custom options (see man darkhttpd for details)
#OPTS=""

View File

@ -0,0 +1,5 @@
#!/bin/sh
[ -r ../conf ] && . ../conf
[ ! -d /var/log/darkhttpd ] && mkdir -p /var/log/darkhttpd
[ "$(ls -dl /var/log/darkthtpd | awk '{print $3}')" != ${USER} ] && chown ${USER}:${GROUP} /var/log/darkhttpd
exec chpst -u ${USER}:${GROUP} svlogd -tt /var/log/darkhttpd

3
usr/lib/runit/sv/darkhttpd/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec chpst -u ${USER:=http}:${GROUP:=http} darkhttpd ${DIR:=/srv/http} --port ${PORT:=8080} ${OPTS} 2>&1

2
usr/lib/runit/sv/dbus/check Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec dbus-send --system / org.freedesktop.DBus.Peer.Ping >/dev/null 2>&1

6
usr/lib/runit/sv/dbus/log/run Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
exec 2>&1; set -e
[ -d /var/log/dbus ] || install -dm 755 /var/log/dbus
exec svlogd -tt /var/log/dbus

5
usr/lib/runit/sv/dbus/run Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
exec 2>&1
dbus-uuidgen --ensure=/etc/machine-id
[ -d /run/dbus ] || install -m755 -g 81 -o 81 -d /run/dbus
exec dbus-daemon --system --nofork --nopidfile

2
usr/lib/runit/sv/ddclient/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec ddclient -foreground

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec chpst -u deluge deluge-web -d

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