I am installing a fresh FileMaker 126.96.36.199 on macOS El Capitan 10.11.6 (15G31) and I want to schedule a system-level script to run periodically.
I have created the schedule
Schedule type: System Script
Schedule name: Scheduled items
Script name filemac:/Macintosh HD/Library/FileMaker Server/Data/Scripts/scheduled_items.sh
Script time limit (hh:mm) 00:01
Abort at time limit Enabled
Start date 9/12/16 1:17 AM
End date None
Repeat Run every day, Every 1 Hours 1:17 AM – 11:57 PM
Email notifications Enabled
Email addresses email@example.com
Schedule Enabled Enabled
The script just touches a file in /tmp
I can see the file appearing in /tmp but the script is always terminated when reaching the time limit. I have tried 1 minute as well as 5 or 10 minute time limits. In the Admin Console the status is listed as
And the log and e-mail sent contains the same information
2016-09-12 16:18:00.038 +0200 Error 642 FileMaker Server Schedule "Scheduled items" aborted; unexpected error. (10022)
If I don't set a time limit the execution appears to continue indefinitely.
How can I make the scripts terminate nicely so I can differentiate real schedule errors from the false positives?