Skip to content
Snippets Groups Projects
Commit f2154c98 authored by Jameson Graef Rollins's avatar Jameson Graef Rollins
Browse files

add calcontrol ssh bridge script

And install in ~/bin/ along with cal update script
parent 04485f0d
No related branches found
No related tags found
No related merge requests found
#!/bin/bash -e
CMD="$SSH_ORIGINAL_COMMAND"
case "$CMD" in
status)
echo "cal config:"
cat ~/calibration/gstlal-calibration-env
echo
echo "git status:"
(cd ~/calibration/ifo/ && git log -1)
echo
echo "filter checksum:"
sha256sum ~/calibration/gstlal_compute_strain_C00_filters_H1.npz
echo
echo "systemd service status:"
systemctl --user status gstlal-calibration
;;
restart)
~/dmt-runtime-configuration/scripts/cal_update_restart
;;
*)
echo "unsupported command: $CMD"
echo "available commands: status, restart"
exit 1
;;
esac
......@@ -63,10 +63,14 @@ make install
# run install check, this should fail if files were not found that should be
make check
# install extra files
cp ~/dmt-runtime-configuration/script/cal_update_restart ~/bin/
cp ~/dmt-runtime-configuration/script/calcontrol-ssh-bridge ~/bin/
# install systemd files
mkdir -p ~/.config/systemd/user
cp ~/dmt-runtime-configuration/systemd/dmt-procmgt@.service ~/.config/systemd/user
cp ~/dmt-runtime-configuration/systemd/gstlal-calibration.service ~/.config/systemd/user
cp ~/dmt-runtime-configuration/systemd/dmt-procmgt@.service ~/.config/systemd/user/
cp ~/dmt-runtime-configuration/systemd/gstlal-calibration.service ~/.config/systemd/user/
systemctl --user daemon-reload
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment