cronie/tests/crond-subtask-abnormal-termination-removes-pid-file-in-error/run-job.sh
Petr Šabata 1eef27beb8 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/cronie#e304e4268e6269aacf1f7bc778fbcadb9d4a1505
2020-10-14 23:19:59 +02:00

10 lines
111 B
Bash

#!/bin/bash
if [ -s /tmp/run-job.lock ]; then
exit 0
fi
echo $PPID > /tmp/run-job.lock
sleep 1234567
exit 0