syncthingtray/scripts/dummy.sh
Martchus 9ce9b11ba4 Use Boost.Process for launcher to cope with further sub processes
* Use a process group / job object via Boost.Process to be able to
  terminate sub processes as well
* Do not try to stop the process gracefully under Windows by posting
  WM_CLOSE because this has no effect on Syncthing anyways
* See https://github.com/Martchus/syncthingtray/issues/94
2021-06-16 22:44:48 +02:00

16 lines
259 B
Bash
Executable File

#!/bin/bash
function handle_int {
echo "Received SIGINT or SIGTERM, keep running for 15 seconds nevertheless"
sleep 15
exit -5
}
trap "handle_int" SIGINT SIGTERM
i=0
while [[ true ]]; do
echo "$i : $RANDOM"
i=$((i + 1))
sleep 1
done