diff options
Diffstat (limited to 'tools/conf/etc/rc.d')
-rwxr-xr-x | tools/conf/etc/rc.d/blan | 71 | ||||
-rwxr-xr-x | tools/conf/etc/rc.d/dnscrypt-proxy | 50 | ||||
-rwxr-xr-x | tools/conf/etc/rc.d/git-daemon | 43 | ||||
-rwxr-xr-x | tools/conf/etc/rc.d/postgresql | 16 | ||||
-rwxr-xr-x | tools/conf/etc/rc.d/syslog-ng | 26 |
5 files changed, 0 insertions, 206 deletions
diff --git a/tools/conf/etc/rc.d/blan b/tools/conf/etc/rc.d/blan deleted file mode 100755 index 61ac2d6..0000000 --- a/tools/conf/etc/rc.d/blan +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/sh -# -# /etc/rc.d/blan: start/stop virtual network interfaces -# - -DEV="br0" -PHY="enp8s0" - -ADDR=10.0.0.254 -#ADDR=10.0.1.254 -MASK=8 -#GW=10.0.0.1 -GW=192.168.1.254 - -# one tap for each cpu core -NTAPS=$((`/usr/bin/nproc`)) - -case $1 in - start) - /sbin/ip link add name ${DEV} type bridge - /sbin/ip addr add ${ADDR}/${MASK} dev ${DEV} broadcast + - /sbin/ip link set dev ${DEV} up - /bin/sleep 0.2s - - # Add network to virtual bridge - /sbin/ip link set dev ${PHY} down - /bin/sleep 0.1s - /sbin/ip route flush dev ${PHY} - /sbin/ip addr flush dev ${PHY} - /sbin/ip link set dev ${PHY} up - /bin/sleep 0.2s - - /sbin/ip link set dev ${PHY} master ${DEV} - /sbin/ip route add default via ${GW} - - for i in `/usr/bin/seq $NTAPS` - do - TAP="tap$i" - echo "Setting up ${TAP} tap interface." - /sbin/ip tuntap add ${TAP} mode tap group kvm - /sbin/ip link set ${TAP} up - /bin/sleep 0.2s - /sbin/ip link set ${TAP} master ${DEV} - done - - exit 0 - ;; - stop) - - for i in `/usr/bin/seq $NTAPS` - do - TAP="tap$i" - echo "Deleting ${TAP} tap interface." - /sbin/ip link del ${TAP} - done - - /sbin/ip link set dev ${DEV} down - /sbin/ip route flush dev ${DEV} - /sbin/ip link del ${DEV} - exit 0 - ;; - restart) - $0 stop - $0 start - ;; - *) - echo "Usage: $0 [start|stop|restart]" - ;; -esac - -# End of file diff --git a/tools/conf/etc/rc.d/dnscrypt-proxy b/tools/conf/etc/rc.d/dnscrypt-proxy deleted file mode 100755 index db8cd77..0000000 --- a/tools/conf/etc/rc.d/dnscrypt-proxy +++ /dev/null @@ -1,50 +0,0 @@ -#! /bin/sh -### BEGIN INIT INFO -# Provides: dnscrypt-proxy -# Required-Start: $local_fs $network -# Required-Stop: $local_fs -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: dnscrypt-proxy -# Description: dnscrypt-proxy secure DNS client -### END INIT INFO - -# Authors: https://github.com/simonclausen/dnscrypt-autoinstall/graphs/contributors -# Project site: https://github.com/simonclausen/dnscrypt-autoinstall - -USER=net -PATH=/usr/sbin:/usr/bin:/sbin:/bin -DAEMON=/usr/sbin/dnscrypt-proxy -NAME=dnscrypt-proxy -RESOLVER=dnscrypt.eu-dk -ADDRESS1=77.66.84.233 -PNAME1=2.dnscrypt-cert.resolver2.dnscrypt.eu -PKEY1=3748:5585:E3B9:D088:FD25:AD36:B037:01F5:520C:D648:9E9A:DD52:1457:4955:9F0A:9955 - -case "$1" in - start) - echo "Starting $NAME" - $DAEMON --daemonize --ephemeral-keys --user=nobody \ - --local-address=127.0.0.1:40 \ - --resolver-address=$ADDRESS3 \ - --provider-name=$PNAME1 \ - --provider-key=$PKEY3 \ - --resolver-name=$RESOLVER - ;; - stop) - echo "Stopping $NAME" - pkill -f $DAEMON - ;; - restart) - $0 stop - $0 start - ;; - *) - echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop|restart}" - exit 1 - ;; -esac - -exit 0 - - diff --git a/tools/conf/etc/rc.d/git-daemon b/tools/conf/etc/rc.d/git-daemon deleted file mode 100755 index fc43cbf..0000000 --- a/tools/conf/etc/rc.d/git-daemon +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -SSD=/sbin/start-stop-daemon -NAME=git-daemon -PROG=$(git --exec-path)/${NAME} -USER=www -GROUP=gitolite -PIDFILE=/var/run/git-daemon.pid -REPOS=/srv/gitolite/repositories -OPTS="--verbose --reuseaddr --base-path=${REPOS}" - -case $1 in - start) - echo "Starting ${NAME}..." - $SSD --start \ - --pidfile ${PIDFILE} \ - --exec ${PROG} -- ${OPTS} \ - --detach --pid-file=${PIDFILE} \ - --user=${USER} --group=${GROUP} - - ;; - stop) - echo "Stopping ${NAME}..." - $SSD --stop --quiet --name git-daemon \ - --pidfile ${PIDFILE} - ;; - restart) - echo "Restarting ${NAME}..." - $0 stop - $0 start - ;; - status) - $SSD --status --pidfile $PIDFILE - case $? in - 0) echo "$PROG is running with pid $(cat $PIDFILE )" ;; - 3) echo "$PROG is not running" ;; - 4) echo "Unable to determine the program status" ;; - esac - ;; - *) - echo "usage: $0 [start|stop|restart|status]" - ;; -esac diff --git a/tools/conf/etc/rc.d/postgresql b/tools/conf/etc/rc.d/postgresql deleted file mode 100755 index 5f0762a..0000000 --- a/tools/conf/etc/rc.d/postgresql +++ /dev/null @@ -1,16 +0,0 @@ -# -# /etc/rc.d/postgresql: start, stop or restart PostgreSQL server postmaster -# - -PG_DATA=/srv/pgsql/data - -case "$1" in - start|stop|status|restart|reload) - sudo -u postgres pg_ctl -D "$PG_DATA" -l /var/log/postgresql "$1" - ;; - *) - echo "usage: $0 start|stop|restart|reload|status" - ;; -esac - -# End of file diff --git a/tools/conf/etc/rc.d/syslog-ng b/tools/conf/etc/rc.d/syslog-ng deleted file mode 100755 index 4ccc7f8..0000000 --- a/tools/conf/etc/rc.d/syslog-ng +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# -# /etc/rc.d/syslog-ng: start/stop syslog-ng logging daemon -# - -case $1 in -start) - /sbin/syslog-ng -f /etc/syslog-ng.conf -p /var/run/syslog-ng.pid - ;; -stop) - killall -q /sbin/syslog-ng - rm -f /var/run/syslog-ng.pid - ;; -reload) - /sbin/syslog-ng-ctl reload - ;; - -restart) - $0 stop - sleep 2 - $0 start - ;; -*) - echo "usage: $0 [start|stop|restart]" - ;; -esac |