diff --git a/syncthing_start.sh b/syncthing_start.sh index 7236680..6dac0ca 100644 --- a/syncthing_start.sh +++ b/syncthing_start.sh @@ -2,10 +2,12 @@ pid=/tmp/syncthing.pid dir=/home/syncthing -log=/dev/log +log=${home}/syncthing.log rm -f ${pid} +install -dm 2750 -o syncthing -g syncthing ${home}/Sync/.stfolder + daemonize -p ${pid} -l ${pid} -u syncthing -c ${dir} \ -o ${log} -a -e ${log} \ /usr/local/bin/syncthing -no-browser -gui-address='http://0.0.0.0:8443'