File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- # script to add to the root crontab to remount attached disk in correct location after scheduled instance restart
3+ # script to add to the root crontab to remount attached disk in correct location after scheduled instance restart,
4+ # which is used for staging and development VMs, but not production
5+
46# crontab should be entered as follows
57# @reboot /root/remout_portal_source.sh > /dev/null 2>&1
8+
9+ # More context: https://github.com/broadinstitute/single_cell_portal_core/pull/2216
610MOUNT_DIR=$( ls -l /dev/disk/by-id/google-* | grep google-singlecell-data-disk | awk -F ' /' ' { print $NF }' )
711if [[ -n " $MOUNT_DIR " ]]; then
812 echo " $( date) : remounting google-singlecell-data-disk from /dev/$MOUNT_DIR " >> /home/jenkins/remount_log.txt
Original file line number Diff line number Diff line change 33# script to add to root crontab on a deployed host to check for crashed Docker containers and restart
44# crontab entry should be as follows:
55# */5 * * * * /root/restart_portal_container.sh > /dev/null 2>&1
6+
7+ # More context: https://github.com/broadinstitute/single_cell_portal_core/pull/2216
68docker ps --filter " status=exited" | grep -e ' single_cell' | while read -r line ; do
79 container_id=` echo $line | awk ' {print $1}' `
810 container_name=` echo $line | awk ' {print $NF}' `
You can’t perform that action at this time.
0 commit comments