This commit is contained in:
parent
08a7a764b1
commit
54fc589e00
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
pid=/tmp/syncthing.pid
|
pid=/tmp/syncthing.pid
|
||||||
dir=/home/syncthing
|
dir=/home/syncthing
|
||||||
|
log=/home/syncthing/syncthing.log
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
start)
|
start)
|
||||||
|
@ -10,8 +11,9 @@ case $1 in
|
||||||
install -dm 2750 -o syncthing -g syncthing ${dir}/Sync/.stfolder
|
install -dm 2750 -o syncthing -g syncthing ${dir}/Sync/.stfolder
|
||||||
|
|
||||||
daemonize -p ${pid} -l ${pid} -u syncthing -c ${dir} \
|
daemonize -p ${pid} -l ${pid} -u syncthing -c ${dir} \
|
||||||
|
-a -e ${log} -o ${log} \
|
||||||
/usr/bin/syncthing serve \
|
/usr/bin/syncthing serve \
|
||||||
--skip-port-probing \
|
--gui-address=http://[::]:8384 \
|
||||||
--no-browser \
|
--no-browser \
|
||||||
--no-restart \
|
--no-restart \
|
||||||
--no-upgrade \
|
--no-upgrade \
|
||||||
|
|
Loading…
Reference in a new issue