ฉันมีไฟล์ plistplist ที่ฉันใช้เพื่อรันโปรแกรมตามเวลาที่เลือกทุกวัน มันใช้งานได้ แต่มันก็ยังรันโปรแกรมเมื่อใดก็ตามที่ฉันบูตคอมพิวเตอร์หรือถอดและโหลดงานใหม่โดยใช้โปรแกรม GUI LaunchControl แม้ว่าฉันจะมีRunAtLoadชุดคีย์เป็นเท็จหรือไม่
ไฟล์ plist ที่สมบูรณ์อยู่ด้านล่าง มันตั้งอยู่ใน/Library/LaunchAgents/:
<?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>
    <key>RunAtLoad</key>
    <false/>
    <key>KeepAlive</key>
    <dict>
        <key>SuccessfulExit</key>
        <false/>
    </dict>
    <key>Label</key>
    <string>com.adbot.plist</string>
    <key>LowPriorityIO</key>
    <true/>
    <key>Program</key>
    <string>/Users/wcm1/programming/ricedh/adbot/adbot.py</string>
    <key>StandardErrorPath</key>
    <string>/tmp/com.adbot.plist.err</string>
    <key>StandardOutPath</key>
    <string>/tmp/com.adbot.plist.out</string>
    <key>StartCalendarInterval</key>
    <array>
        <dict>
            <key>Hour</key>
            <integer>10</integer>
            <key>Minute</key>
            <integer>30</integer>
        </dict>
    </array>
</dict>
</plist>
คิด?
KeepAliveคำจำกัดความของฉันหมายถึงRunAtLoadและแม้แต่ความพยายามของฉันที่จะตั้งค่าRunAtLoadเป็นเท็จ ไม่แน่ใจว่าทำไมเป็นกรณีนี้ แต่การKeepAliveบล็อกออกดูเหมือนจะแก้ไขปัญหาได้แล้ว