Preliminary commit of new files

This commit is contained in:
2014-12-18 12:12:17 +00:00
parent d6919960c0
commit 25a6f48597
63 changed files with 1004 additions and 0 deletions

8
build/runit/btsync Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
mkdir -p $BTSYNC_DATA
if [ ! -e $BTSYNC_CONFIG ]; then
mkdir -p `dirname $BTSYNC_CONFIG`
/opt/btsync --dump-sample-config > $BTSYNC_CONFIG
sed -i "s,\(\"storage_path\"\s*:\).*,\1 \"$BTSYNC_DATA\"\,," $BTSYNC_CONFIG
fi
/opt/btsync --nodaemon --config $BTSYNC_CONFIG

2
build/runit/cron Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
/usr/sbin/cron -f

4
build/runit/hamachi Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
/opt/logmein-hamachi/bin/hamachid -c $HAMACHI_DATA
strace -qqe '' -p `pgrep hamachid`
/host/bin/proxy

4
build/runit/redis Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
mkdir -p `dirname $REDIS_LOG` $REDIS_DATA
sysctl vm.overcommit_memory=1
/usr/bin/redis-server $REDIS_CONFIG

2
build/runit/sshd Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
/usr/sbin/sshd -D

24
build/runit/syslog Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/sh
set -e
SYSLOGNG_OPTS=""
[ -r /etc/default/syslog-ng ] && . /etc/default/syslog-ng
case "x$CONSOLE_LOG_LEVEL" in
x[1-8])
dmesg -n $CONSOLE_LOG_LEVEL
;;
x)
;;
*)
echo "CONSOLE_LOG_LEVEL is of unaccepted value."
;;
esac
if [ ! -e /dev/xconsole ]
then
mknod -m 640 /dev/xconsole p
fi
syslog-ng -F -p /var/run/syslog-ng.pid $SYSLOGNG_OPTS