Commit db7bb983 authored by Paul Rich's avatar Paul Rich
Browse files

Merge branch '47-init-script-tag-host' into 'develop'

Resolve "Cray init script needs to tag host to redirected output files in general"

Closes #47

See merge request !18
parents c6fa4f4e b84316af
......@@ -49,14 +49,8 @@ start_component () {
then
(
date=`/bin/date`
if [ "$component" == "alps_script_forker" ]
then
echo "--- $date: START ${component} ---" >>/var/log/cobalt/${component}_${HOSTNAME}.out
nohup "${DAEMONDIR}/${component}.py" $component_args --config-files "${CONFIGFILE}" >>/var/log/cobalt/${component}_${HOSTNAME}.out 2>&1 &
else
echo "--- $date: START ${component} ---" >>/var/log/cobalt/${component}.out
nohup "${DAEMONDIR}/${component}.py" $component_args --config-files "${CONFIGFILE}" >>/var/log/cobalt/${component}.out 2>&1 &
fi
echo "--- $date: START ${component} ---" >>/var/log/cobalt/${component}_${HOSTNAME}.out
nohup "${DAEMONDIR}/${component}.py" $component_args --config-files "${CONFIGFILE}" >>/var/log/cobalt/${component}_${HOSTNAME}.out 2>&1 &
)
echo "done"
return 0
......
......@@ -278,6 +278,8 @@ class Component (object):
self._component_lock = threading.Lock()
self._component_lock_acquired_time = None
self.statistics = Statistics()
self.logger.info("%s:%s component executing on %s", self.name,
self.implementation, socket.gethostname())
def __getstate__(self):
state = {}
......@@ -296,6 +298,8 @@ class Component (object):
self._component_lock = threading.Lock()
self._component_lock_acquired_time = None
self.statistics = Statistics()
self.logger.info("%s:%s component executing on %s", self.name,
self.implementation, socket.gethostname())
def component_lock_acquire(self):
entry_time = time.time()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment