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:
DB_USER_NAME
- user name with write access to the databaseDB_PASSWORD
- password of accountDB_NAME
- name of database to store the filesDB_URL
- URL of database serverDTACQ_USER_NAME
- username for logging on to DTACQ cards (typically root
)DTACQ_PASSWORD
- password for login on DTACQ cards (for SSH access)Note the values of these variables:
WorkingDirectory
- path where temporary files will be stored before upload to the DBStandardOut(Error)Path
- path to log fileRunAtLoad
- start daemon on bootKeepAlive
- keep daemon running if it dies (or is killed)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 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.