DTACQ

nEDM Experiment

DTACQ

Repository

Sub-pages:

Administration

This describes running the WAMP server on a Mac OS X system. At the time of writing, it was running on the mini.nedm1 Mac mini. The daemon runs using the launchd system on Mac OS X. For an example of a plist file used to define this daemon see here.

To use this file, first edit the paths in the file to correspond to the paths on your system.

Then assign the following environment variables correctly:

Note the values of these variables:

Starting

After the nedm1.digitizer.plist is correctly modified, move it to a standard place, e.g.:

mv nedm1.digitizer.plist ~/Library/LaunchAgents

Then start the daemon by loading it:

launchctl load ~/Library/LaunchAgents/nedm1.digitizer.plist

Stopping (permanently) can be done by:

launchctl unload ~/Library/LaunchAgents/nedm1.digitizer.plist

Restarting or upgrading

Restarting the server can be done by sending it a signal (either INT or KILL depending upon whether or not it’s still responsive). The launchd daemon will automatically restart it. Use ps -ef | grep python to determine the process ID and then call kill -INT [the_pid] (or kill -KILL [the_pid]), where [the_pid] is the appropriate process id.