MacOS X Service


You can setup the Automize/AbleFtp/JaSFtp/AutoKrypt/XMLmotor Engine to run as a Service on MacOSX 10.9, using Launchd which is installed with MacOSX 10.4 (and later)

When you open the Mac Service window, it will generate a com.hitek.***.service.plist file. (*** = automize, jasftp, autokrypt, ableftp etc in lower case)
1) Copy this file to the '/Library/LaunchDaemons' folder. You should have administrative previliges on the machine and have to authenticate to place the .plist file here.
2) IMPORTANT: DO NOT place the .plist file in '~/Library/LaunchAgents' , which is in your home directory.
3) The code required to copy this file can be copied to the system clipboard by clicking on the 'Copy to Clipboard' button.

_______________________________________________________________________________________
Starting and Stopping the Service manually:
1) To start the service manually, use the launchctl command from a terminal:
sudo launchctl load /Library/LaunchDaemons/com.hitek.***.service.plist
2) To stop the service, use :
sudo launchctl unload com.hitek.***.service.plist
3) To see the list of running services, use:
sudo launchctl list
(In the list, you will see com.hitek.***.service.plist if it is running)

_______________________________________________________________________________________
Steps to test the service:
1) Create a Simple echo task (tasks button / Miscellanous folder)
2) Schedule it to run every 1 minute and test that it is running every minute.
3) Restart your system
4) Wait for 3-5 minutes
5) Log on
6) Start up Automize/AbleFTP/JaSFTP/AutoKrypt user interface. Check from Activity log that echo task has been running for the past 3-5 minutes after startup.
7) Log off for 2-5 minutes
8) Log back on and verify that the echo task has been running during log off.

_______________________________________________________________________________________
NOTES:
1) The service is started with the 'root' account.
2) In the activity log, you will get a warning that engine username and user interface username are not the same.
3) If you stop the engine from user interface, the launchd service will start it up again! You have to stop the service using the launchctl command (see above)