+ pCloudRestarter.sh

This commit is contained in:
committer@tuxwarrior
2025-05-11 19:32:23 -05:00
parent 9ad01fa62d
commit e78340c294

26
dots/bin/pCloudRestarter.sh Executable file
View File

@@ -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