/ pCloudRestarter.sh ➔ pCloudSynologyDriverRestarter.sh

This commit is contained in:
committer@tuxwarrior
2025-05-11 19:41:49 -05:00
parent 0a96a1ed59
commit 93f2aea3b0
2 changed files with 40 additions and 27 deletions

View File

@@ -1,27 +0,0 @@
#!/bin/bash
# frode klevstul : start 25.05.11 : restart pcloud, as that program hangs quire frequently
# 900 sec = 15 minutes
secs=900
while true
do
if pidof pcloud ; then
echo "kill pcloud"
pkill -15 pcloud
sleep 30
else
echo "pCloud is not running, so no killing is 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

View File

@@ -0,0 +1,40 @@
#!/bin/bash
# frode klevstul : start 25.05.11 : restart pcloud and synology-drive, as pcloud issues hinder continous syncing
# 900 sec = 15 minutes
secs=900
while true
do
if pidof pcloud ; then
echo "kill pcloud"
pkill -15 pcloud
sleep 30
else
echo "pCloud is not running, so no killing is neccessary (this time around…)"
sleep 1
fi
echo "start pCloud"
pcloud &
sleep 10
if pidof synology-drive ; then
echo "kill synology-drive"
pkill -15 synology-drive
sleep 30
else
echo "Synology-Drive is not running, so no killing is neccessary (this time around…)"
sleep 1
fi
echo "start Synology-Drive"
synology-drive &
sleep 10
echo "sleep for ${secs} seconds, wake up, repeat (ctrl+c to stop)"
sleep ${secs}
done