init
This commit is contained in:
5
syncthing/root/etc/cont-init.d/setup-config
Normal file
5
syncthing/root/etc/cont-init.d/setup-config
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
set -e
|
||||
|
||||
bashio::log.info 'Setup config'
|
||||
mkdir -p /data/config
|
||||
10
syncthing/root/etc/services.d/syncthing/run
Normal file
10
syncthing/root/etc/services.d/syncthing/run
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
set -e
|
||||
|
||||
# Enable Jemalloc for better memory handling
|
||||
export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
|
||||
|
||||
export STNOUPGRADE=1
|
||||
|
||||
bashio::log.info 'Start syncthing'
|
||||
syncthing -no-browser -no-restart -home=/data/config -gui-address=0.0.0.0:8384
|
||||
Reference in New Issue
Block a user