Actually, I am quite new in Mac OS X launchd property list.
I am planning to deploy a unix daemon program to serve my customers in only their office hours. For example 7:00 AM - 9:00PM.
Is there any possible only use one property list ***.plist file to fulfil it or I need two separated property list files to start/stop the daemon services?
Please advise or any suggestion are welcome!
Plenty appreciation!
Edit:
Yeah. I am planning to start and stop my daemon by using launchd. I tried to use parameter such as:
<key>ProgramArguments</key>
<array>
<string>myDaemon</string>
<string>-e</string>
<string>61200</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Minute</key>
<integer>5</integer>
<key>Hour</key>
<integer>6</integer>
</dict>
I tried pass -e 61200 as parameter to let the daemon keep running 17 hours and then exit. But unfortunately. This way not work.