<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <!--
    BQAS Local Scheduler - launchd plist

    Fuehrt BQAS Tests taeglich um 07:00 Uhr aus.

    Installation:
        cp com.breakpilot.bqas.plist ~/Library/LaunchAgents/
        launchctl load ~/Library/LaunchAgents/com.breakpilot.bqas.plist

    Deinstallation:
        launchctl unload ~/Library/LaunchAgents/com.breakpilot.bqas.plist
        rm ~/Library/LaunchAgents/com.breakpilot.bqas.plist

    Manueller Test:
        launchctl start com.breakpilot.bqas

    Status pruefen:
        launchctl list | grep bqas
    -->

    <key>Label</key>
    <string>com.breakpilot.bqas</string>

    <key>ProgramArguments</key>
    <array>
        <string>/Users/benjaminadmin/Projekte/breakpilot-pwa/voice-service/scripts/run_bqas.sh</string>
    </array>

    <!-- Taeglich um 07:00 Uhr -->
    <key>StartCalendarInterval</key>
    <dict>
        <key>Hour</key>
        <integer>7</integer>
        <key>Minute</key>
        <integer>0</integer>
    </dict>

    <!-- Log-Ausgaben -->
    <key>StandardOutPath</key>
    <string>/var/log/bqas/stdout.log</string>

    <key>StandardErrorPath</key>
    <string>/var/log/bqas/stderr.log</string>

    <!-- Nicht beim Login starten -->
    <key>RunAtLoad</key>
    <false/>

    <!-- Umgebungsvariablen -->
    <key>EnvironmentVariables</key>
    <dict>
        <key>PATH</key>
        <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
        <key>HOME</key>
        <string>/Users/benjaminadmin</string>
        <!-- Optional: Service URL ueberschreiben -->
        <!-- <key>BQAS_SERVICE_URL</key>
        <string>http://localhost:8091</string> -->
    </dict>

    <!-- Arbeitsverzeichnis -->
    <key>WorkingDirectory</key>
    <string>/Users/benjaminadmin/Projekte/breakpilot-pwa/voice-service</string>

    <!-- Ressourcen-Limits (optional) -->
    <key>ProcessType</key>
    <string>Background</string>

    <!-- Timeout: 30 Minuten -->
    <key>TimeOut</key>
    <integer>1800</integer>
</dict>
</plist>
