Hi, I'm using Bob every day on linux, and I often come back to the computer
after being away and its often disconnected, and a simple browser reload
doesn't work.
I have this script running every 30 minutes on a cronjob, but it doesn't
always work
if ! pgrep -x "node" > /dev/null
then
echo "node is Stopped, restarting"
yad --text="Starting up the Bob..." --timeout=1 --center ;cd
/home/david/SyncthingFolders/Bob/TiddlyWiki5;node ./tiddlywiki.js
Wikis/BobWiki --wsserver;
else
echo node is running
yad --text="node is running fine" --timeout=1 --center
fi
i.e., sometimes if I do this at the terminal
pgrep -x "node"
it returns a process ID indicating node is running, but I still have to
``pkill node`` to get Bob going.
Is there a better way (by script) to detect if Bob is running properly so I
don't have the cronjob kill the script (if I just pkill every 30 minutes)
while I'm working in it?
Thanks,
- Dave
P.S. I just noticed that now that Bob is running there are actually 2
processes of node running now. Is that a reliable indicator? If so I'm
sure I could detect that in a script
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/384cb1d0-5b87-4078-834c-843561a06194%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.