From e78340c29488d5d7e18ca8f44461029ed40ed257 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Sun, 11 May 2025 19:32:23 -0500 Subject: [PATCH] + pCloudRestarter.sh --- dots/bin/pCloudRestarter.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 dots/bin/pCloudRestarter.sh diff --git a/dots/bin/pCloudRestarter.sh b/dots/bin/pCloudRestarter.sh new file mode 100755 index 0000000..37e529f --- /dev/null +++ b/dots/bin/pCloudRestarter.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# frode klevstul : start 25.05.11 : restart pcloud, as that program hangs quire frequently + +secs=900 + +while true +do + + if pidof pcloud ; then + echo "kill pcloud" + pkill -15 pcloud + sleep 30 + else + echo "pcloud not running, so no killing neccessary this time around…" + sleep 1 + fi + + echo "start pcloud" + pcloud & + sleep 10 + + echo "sleep for ${secs} seconds, wake up, repeat (ctrl+c to stop)" + sleep ${secs} + +done