complete syncthing-keepalive script
This commit is contained in:
@@ -22,5 +22,6 @@ if ! is_syncthing_running; then
|
|||||||
fi
|
fi
|
||||||
screen -DmS "${screen_name}" syncthing &
|
screen -DmS "${screen_name}" syncthing &
|
||||||
screen_pid=$!
|
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
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user