Hello,
I have a cloud sync task, to do a backup of my gitea jail. To do this, I have to stop the service and restart it afterwards with the Pre-script and Post-script. The job however gets stuck and never finishes.
I use in the following example the
From the log you can see, that the last
Hope you can help me. Best regards
ToppDev
I have a cloud sync task, to do a backup of my gitea jail. To do this, I have to stop the service and restart it afterwards with the Pre-script and Post-script. The job however gets stuck and never finishes.
I use in the following example the
gitea
service, however this works with other services as well.Pre-Script
Code:
iocage exec gitea "service gitea stop" # Do the backup here
Post-Script
Code:
echo "Restarting gitea..." iocage exec gitea "service gitea start" echo "Finished"
Log from Dry run
Code:
[Pre-script] Stopping gitea. [Pre-script] Waiting for PIDS: 719. 2022/12/30 19:36:08 NOTICE: gitea-dump-1672408457.zip: Skipped delete as --dry-run is set (size 71.837Ki) 2022/12/30 19:36:08 INFO : There was nothing to transfer 2022/12/30 19:36:08 NOTICE: Transferred: 0 B / 0 B, -, 0 B/s, ETA - Checks: 13 / 13, 100% Deleted: 13 (files), 0 (dirs) Elapsed time: 0.7s [Post-script] Restarting gitea... [Post-script] Finished
From the log you can see, that the last
echo
is printed in the Post-script, also the service comes up inside the jail, but the task is not finishing. The dry-run window stays open till I abort it.Environment info
- TrueNAS version: TrueNAS-13.0-U3.1
- FreeBSD 13.1-RELEASE-p2
Hope you can help me. Best regards
ToppDev