Compare commits
6 commits
7d00d2cfd1
...
11cb290ae8
Author | SHA1 | Date | |
---|---|---|---|
11cb290ae8 | |||
4f1f5c27d0 | |||
0b354f4fea | |||
9c4de359fb | |||
c90ba65374 | |||
4ac1583bcb |
|
@ -18,6 +18,7 @@ pipeline:
|
|||
event: push
|
||||
matrix:
|
||||
ALPINE_VERSION:
|
||||
- 3.15.3
|
||||
- 3.14.5
|
||||
- 3.13.9
|
||||
- 3.16.2
|
||||
- 3.15.6
|
||||
- 3.14.8
|
||||
- 3.13.12
|
||||
|
|
|
@ -2,16 +2,13 @@
|
|||
|
||||
pid=/tmp/syncthing.pid
|
||||
dir=/home/syncthing
|
||||
log=/home/syncthing/syncthing.log
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
rm -f ${pid}
|
||||
|
||||
install -dm 2750 -o syncthing -g syncthing ${dir}/Sync/.stfolder
|
||||
|
||||
daemonize -p ${pid} -l ${pid} -u syncthing -c ${dir} \
|
||||
-a -e ${log} -o ${log} \
|
||||
/usr/bin/syslogize \
|
||||
/usr/bin/syncthing serve \
|
||||
--gui-address=http://[::]:8384 \
|
||||
--no-browser \
|
||||
|
@ -20,6 +17,7 @@ case $1 in
|
|||
--unpaused
|
||||
;;
|
||||
stop)
|
||||
cat ${pid} | xargs -r kill
|
||||
test ! -f $pid || cat ${pid} | xargs -r kill
|
||||
rm -f ${pid}
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue