-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add script to check cnf file, make wheredaq simpler, restartdaq&stopd…
…aq now tmo-compatible
- Loading branch information
1 parent
7b037b3
commit 13ff8ef
Showing
4 changed files
with
86 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
usage() | ||
{ | ||
cat << EOF | ||
usage: $0 | ||
Discover what host is running the daq in the current hutch, if any. | ||
EOF | ||
} | ||
|
||
if [[ ($1 == "--help") || ($1 == "-h") ]]; then | ||
usage | ||
exit 0 | ||
fi | ||
|
||
HUTCH=`get_info --gethutch` | ||
NOTRUNNING='Not running' | ||
|
||
if [[ ($HUTCH == 'tmo') || ($HUTCH == 'rix') ]]; then | ||
source /reg/g/pcds/dist/pds/$HUTCH/scripts/setup_env.sh | ||
PROCMGR='procmgr' | ||
else | ||
PROCMGR='/reg/g/pcds/dist/pds/current/tools/procmgr/procmgr' | ||
fi | ||
|
||
STATUS=`$PROCMGR status /reg/g/pcds/dist/pds/$HUTCH/scripts/$HUTCH.cnf control_gui` | ||
ISOK=`echo $STATUS | grep platform | wc -l` | ||
if [[ $ISOK == 0 ]]; then | ||
echo The cnf file for $HUTCH can be parsed | ||
else | ||
echo WARNING: the cnf file for $HUTCH cannot parsed! | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters