Skip to content

Commit

Permalink
Update the GCN stream launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Dec 13, 2024
1 parent 4f25ead commit 28fb7bc
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions scheduler/launch_gcn_listener.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
#!/bin/bash
# Copyright 2019-2024 AstroLab Software
# Author: Julien Peloton
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

mkdir -p $HOME/fink_grb_out
# Check FINK_MM path exists
if [[ -z "$FINK_MM_HOME" ]]; then
echo "You did not set FINK_MM_HOME."
echo "The program will not be launched."
echo "Exiting."
exit
fi

mkdir -p $HOME/fink_mm_out

# should be up 24/7
nohup fink_grb gcn_stream start --config $FINK_HOME/conf_cluster/fink_grb.conf > $HOME/fink_grb_out/gcn_stream.log &
nohup fink_mm gcn_stream start --config $FINK_MM_HOME/fink_mm/conf/fink_mm.conf --restart > $HOME/fink_mm_out/gcn_stream.log &

0 comments on commit 28fb7bc

Please sign in to comment.