complete syncthing-keepalive script

This commit is contained in:
2019-01-04 13:13:10 +03:00
parent f83bd48d5e
commit 608748475f

View File

@@ -22,5 +22,6 @@ if ! is_syncthing_running; then
fi
screen -DmS "${screen_name}" syncthing &
screen_pid=$!
# todo! find pid of syncthing and store it to pid file
shell_pid=$(ps h --ppid "${screen_pid}" -opid)
ps h --ppid "${shell_pid}" -opid > "${pid_file}"
fi