To install, clone this repo and run the makefile. Preferably use a virtual environment
$ git clone https://github.com/CTMObservatory/CTMO_Manager.git
$ cd CTMO_Manager
$ mkvirtualenv -p python3 ctmo
$ make
$ sudo make install
Installation requires root privilege.
Once the system is properly configured, you can start, stop or restart any of the services.
$ systemctl [action] [service]
Where action
is one of: start
, stop
or restart
and service is any of telescoped
or schedulerd
.
$ launchctl load /Library/LaunchAgents/org.ctmo.scheduler
To stop use unload
instead.
$ make clean
$ sudo -H make uninstall
You can test the availability of the service with send_work_order.py
script:
$ python3 send_work_order.py
You should see "Work order received." printed on the screen.