Configuring XDAQ applications to be started as system service
Edit the following three files:
/opt/xdaq/share/`cat /etc/xdaq.zone`/conf/myservicename.conf
/opt/xdaq/share/`cat /etc/xdaq.zone`/conf/myconfig.xml
/opt/xdaq/share/`cat /etc/xdaq.zone`/conf/xdaqd.`hostname -f`.conf
xdaqd.`hostname -f`.conf
This is a host-specific xdaqd config file which can be copied from
/opt/xdaq/share/base/conf/xdaqd.conf
. Edit the copied file
and add
myservicename
to the setting of the shell variable
STARTUP_LIST
, e.g.
STARTUP_LIST="jobcontrol myservicename"
myservicename.conf
Set the shell variables
XDAQ_CONFIG
,
XDAQ_LOG
and
XDAQ_PORT
,
e.g. as follows:
XDAQ_CONFIG=/opt/xdaq/share/`cat /etc/xdaq.zone`/conf/myconfig.xml
XDAQ_LOG=/var/log/myservicename.log
XDAQ_PORT=1972
myconfig.xml
This is an ordinary XDAQ configuration file.
--
AndreHolzner - 05 Aug 2008