Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 36 lines (31 sloc) 1.097 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#! /bin/bash
#=========================================================================
# Copyright (C) GemStone Systems, Inc. 2011.
#
# Name - setupLocks.sh
#
# Purpose - Make sure MagLev and GemStone are both using the same locks directory
#
# $Id:$
#
# Description:
# GemStone expects locks to be in /opt/gemstone/locks
# MagLev expects locks to be in $MAGLEV_HOME/locks
# Ditto for log directory
# This script links them together
# Your need to rerun this script anytime you change $MAGLEV_HOME
# Use at your own risk!
#
# Actions:
# Stop MagLev first if it is running
# Create /opt/gemstone/locks and /opt/gemstone/log
# Remove existing $MAGLEV_HOME/locks and $MAGLEV_HOME/log
# Soft link respective directories to equivalent ones in /opt/gemstone

cd $MAGLEV_HOME
maglev stop

sudo mkdir -p /opt/gemstone /opt/gemstone/log /opt/gemstone/locks
sudo chown $USER:${GROUPS[0]} /opt/gemstone /opt/gemstone/log /opt/gemstone/locks
sudo chmod 775 /opt/gemstone /opt/gemstone/log /opt/gemstone/locks

rm -rf locks log

ln -s /opt/gemstone/log
ln -s /opt/gemstone/locks
Something went wrong with that request. Please try again.