Skip to content

Instantly share code, notes, and snippets.

@csrutil
Created July 16, 2023 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csrutil/00404da7c9e54431d8e2d29c36832dce to your computer and use it in GitHub Desktop.
Save csrutil/00404da7c9e54431d8e2d29c36832dce to your computer and use it in GitHub Desktop.
check process tailscale with pidfile /tmp/tailscale/tailscaled.pid
start program = "/share/CACHEDEV1_DATA/.qpkg/Tailscale/TailscaleWithLog.sh start"
stop program = "/share/CACHEDEV1_DATA/.qpkg/Tailscale/TailscaleWithLog.sh stop"
if failed host 127.0.0.1 port 41641 type udp then restart
group tailscale
#check process yfnode with pidfile /var/run/yfnode.pid
# start program = "/bin/bash -c '/share/external/DEV3301_1/ttnode_arm64/boot'"
# stop program = "/bin/kill -9 $(/bin/cat /var/run/yfnode.pid)"
# if 10 restarts with 10 cycles then timeout
# group yfnode
@csrutil
Copy link
Author

csrutil commented Jul 16, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment