*: add exec 2>&1 to all existing services

except when it already exists, of course
This commit is contained in:
classabbyamp 2023-02-07 02:25:27 -05:00 committed by classabbyamp
parent b5d44cefbb
commit 351646d5bd
392 changed files with 392 additions and 0 deletions

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec 3proxy /etc/3proxy/3proxy.cfg

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
sv check dbus >/dev/null || exit 1
exec /usr/libexec/clightd 2>&1

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec chpst -u _eternal etserver

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec chpst -u _freeradius:_freeradius radiusd -f

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
# The Google services assert that the init is performing some
# sequencing. Since runit provides no such facility, we will block

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
sv check GCP-Guest-Initialization >/dev/null || exit 1

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
sv check GCP-Guest-Initialization >/dev/null || exit 1

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
sv check GCP-Guest-Initialization >/dev/null || exit 1

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
sv check dbus >/dev/null || exit 1
exec NetworkManager -n > /dev/null 2>&1

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec swapspace

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec acpid -f ${OPTS:=-l}

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
# Add $ARGS for more arguments
[ -f ./conf ] && . ./conf

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec alfred ${OPTS:=-i "bat0" -b "bat0"}

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec batadv-vis ${OPTS:=-si bat0}

View file

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

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
set -e
[ -r conf ] && . ./conf
adb ${OPTS:=start-server -P5037}

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
exec anopeservices \
--confdir=/etc/anope \
--dbdir=/var/lib/anope \

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
exec /usr/lib/kafka/bin/zookeeper-server-start.sh ${PROPERTIES_FILE:-/usr/lib/kafka/config/zookeeper.properties}

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
exec /usr/lib/kafka/bin/kafka-server-start.sh ${PROPERTIES_FILE:-/usr/lib/kafka/config/server.properties}

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
export CATALINA_BASE=/usr/share/apache-tomcat

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
set -e

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf] && . ./conf
exec apcupsd -b ${OPTS}

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec ardor-tor > /dev/null

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec ardor > /dev/null

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec armagetronad-dedicated

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
asus-kbd-backlight allowusers

View file

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

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec atop -a -w /var/log/atop/atop_$(date +%Y%m%d) 600

View file

@ -1,4 +1,5 @@
#!/bin/sh -e
exec 2>&1
test ! -r ./conf || . ./conf

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec auditd -n

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
# if dbus is enabled wait for it.
if [ -e /var/service/dbus ]; then
sv check dbus > /dev/null || exit 1

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ ! -d /run/bacula ] && mkdir /run/bacula
exec bacula-dir -f -c /etc/bacula/bacula-dir.conf

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ ! -d /run/bacula ] && mkdir /run/bacula
exec bacula-fd -f -c /etc/bacula/bacula-fd.conf

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ ! -d /run/bacula ] && mkdir /run/bacula
exec bacula-sd -f -c /etc/bacula/bacula-sd.conf

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
[ -z $SERVER_ADDR ] && exit 0
[ -z $SKIP_X11_TEST ] && ! ps -C Xorg >/dev/null 2>&1 && exit 0

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
[ -z $SKIP_X11_TEST ] && ! ps -C Xorg >/dev/null 2>&1 && exit 0
exec barriers --no-daemon ${OPTS:=--restart}

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
# By default use persistent storage (binary log)
[ -r conf ] && . ./conf
exec chpst -u _beanstalkd:_beanstalkd beanstalkd ${OPTS:=-b /var/lib/beanstalkd} 2>&1

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
exec beard -H ${BEARD_HIBERNATE:=/usr/bin/zzz} $OPTS

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec bftpd -D

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
update-binfmts --enable
exec chpst -b binfmt-support pause

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec bird -f -u _bird -g _bird ${OPTS:=-c /etc/bird.conf}

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec bird_exporter ${OPTS:=-bird.v2 -format.new}

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
set -e
install -d -m0755 -o bitlbee -g bitlbee /run/bitlbee
[ -r conf ] && . ./conf

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
# Add $ARGS for more arguments to blackbox_exporter
# $CONF_FILE is the location of the configuration file.

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
install -d -m0755 -o _bluez_alsa -g audio /run/bluealsa

View file

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

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
mkdir -p /var/run/brltty || exit 1
exec brltty -n

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec bumblebeed --use-syslog

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec burp -F -c /etc/burp/burp-server.conf

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec busybox klogd -n

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec busybox ntpd -nN -p pool.ntp.org

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec busybox syslogd -n

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
modprobe cachefiles || exit 1
exec cachefilesd -n ${OPTS:= -f /etc/cachefilesd.conf}

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec canto-daemon

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
exec chpst -u _chronograf:_chronograf chronograf --bolt-path=/var/lib/chronograf/chronograf-v1.db --canned-path=/usr/share/chronograf/canned

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
install -d -m750 -o chrony -g chrony /var/run/chrony
exec chronyd -n -u chrony

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec /usr/bin/ckb-next-daemon 2>&1

View file

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

View file

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

View file

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

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
ulimit -n ${MAX_OPEN_FILES:-8192}
export CONDUIT_CONFIG=${CONDUIT_CONFIG:-/etc/conduit/conduit.toml}

View file

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

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
env modeprobe overlay
exec containerd

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec chpst -u _coturn:_coturn turnserver -c /etc/turnserver.conf

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec criu service ${OPTS:=-o /var/log/criu-service.log}

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec cronie-crond -n $OPTS 2>&1

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec cups-browsed

View file

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

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
: ${WWWDIR:=/srv/www/darkhttpd}
exec darkhttpd "${WWWDIR}" --chroot --uid _darkhttpd --gid _darkhttpd $OPTS 2>&1 >>/var/log/darkhttpd/darkhttpd.log

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ ! -d /run/dbus ] && install -m755 -g 22 -o 22 -d /run/dbus
exec dbus-daemon --system --nofork --nopidfile

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ ! -d /run/dbus ] && install -m755 -g 22 -o 22 -d /run/dbus
exec dbus-daemon --system --nofork --nopidfile

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec dcrond -f $OPTS 2>&1

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec ddclient -foreground

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
sv check deluged >/dev/null || exit 1
HOME=/var/lib/deluge
exec chpst -u deluge:deluge deluge-web -d 2>&1

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
exec deluged -d -U deluge -g deluge -c /var/lib/deluge/.config/deluge ${OPTS} 2>&1

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec dhcpcd -B eth0 $OPTS 1>&2

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec dhcpcd -B ${OPTS:=-M} 1>&2

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec 2>/dev/null
exec chpst -u dictd:dictd dictd --debug nodetach ${OPTS:=--locale en_US.UTF-8 -s}

View file

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

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
PROG="distccd"
USER="nobody"
OPTIONS="--no-detach"

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec chpst -u _dkim:_dkim dkimproxy.in --conf_file=/etc/dkimproxy_in.conf 2>&1

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec chpst -u _dkim:_dkim dkimproxy.out --conf_file=/etc/dkimproxy_out.conf 2>&1

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -f ./conf ] && . ./conf
MAX_OPEN_FILES=${MAX_OPEN_FILES:-2048}
exec chpst -o $MAX_OPEN_FILES dnsdist --uid _dnsdist --gid _dnsdist --supervised --disable-syslog

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
mkdir -p /var/lib/misc
[ -r ./conf ] && . ./conf
exec dnsmasq -k ${OPTS:---enable-dbus -u dnsmasq -g dnsmasq} 2>&1

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
install -d -m 0755 -o root -g root /var/run/dovecot
exec dovecot -F

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
exec chpst -U _dqcache -e /etc/dqcache/env dqcache 2>&1

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
set -e
/usr/libexec/drbd start
exec chpst -b drbd pause

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec dropbear ${OPTS:=-F -R}

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
[ -f ./conf ] && . ./conf

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec earlyoom ${OPTS} 2>&1 >/dev/null

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
edac-ctl --register-labels
exec chpst -b edac pause

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec 2>&1
exec chpst -u elog:elog /usr/bin/elogd -c /etc/elog/elogd.cfg

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
# elogind doesn't work right if it starts before dbus
sv check dbus >/dev/null || exit 1
exec /usr/libexec/elogind/elogind.wrapper

View file

@ -1,4 +1,5 @@
#!/bin/sh
exec 2>&1
export ETCD_DATA_DIR=/var/lib/etcd
export ETCD_NAME=etcd

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