blob: 089c979e238f8430ecb30c333b6474f5aeec8aab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
exec 2>&1
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions
stat_runit "Starting rslsync daemon"
FILE=/home/mythtv/.config/rslsync/rslsync.conf
STORAGE=/data/storage/disk0/media/resilio/.sync
if [ ! -f "$FILE" ]; then
mkdir -p /home/mythtv/.config/rslsync/
cp /etc/rslsync.conf "$FILE"
chown -R mythtv:mythtv /home/mythtv/.config/rslsync
fi
if [ ! -d "$STORAGE" ]; then
mkdir -p $STORAGE
chown -R mythtv:mythtv /data/storage/disk0/media/resilio/
fi
exec chpst -umythtv /usr/bin/rslsync --nodaemon --config $FILE --storage $STORAGE
|