Files
lnx-arch/dots/bin/pCloudRestarter.sh
committer@tuxwarrior e78340c294 + pCloudRestarter.sh
2025-05-11 19:32:23 -05:00

27 lines
473 B
Bash
Executable File

#!/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