Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions monroe-experiments/usr/bin/monroe-rsync-results
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ export PATH=/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/b

. /etc/default/monroe-experiments

# do not run rsync if already running
me=$(basename "$0");
running=$(ps h -C "$me" | grep -wv $$ | wc -l);
[[ $running > 1 ]] && exit;

# do not run rsync if a user experiment is running
experiments && exit 1

Expand Down