Commit 216c32f9 authored by Maarten Litmaath's avatar Maarten Litmaath
Browse files

v1.14:

- support calling jalien-vobox.sh through a symlink;
- small correction in README file.
parent 6d712fc5
......@@ -4,7 +4,7 @@ JAliEn startup scripts are used to control CE and MonaLisa services on VOboxes.
# Usage
```
Usage: jalien-vobox <Command> [<Service>]
Usage: jalien-vobox.sh <Command> [<Service>]
<Command> is one of: start status stop restart condrestart mlstatus check
......
#!/bin/bash
# JAliEn VObox Startup Scripts - wrapper
# v1.13 - 2022-02-07
# v1.14 - 2022-02-08
# Authors:
# Kalana Dananjaya <kwijethu@cern.ch>
# Costin Grigoras <Costin.Grigoras@cern.ch>
......@@ -13,7 +13,9 @@ hostname=`hostname -f`
confDir="${HOME}/.alien/config"
checkLog=/tmp/vobox-check-`date +%y%m%d`.log
dir="$(cd `dirname -- "$0"` &>/dev/null && pwd)"
[ -L "$0" ] && p=$(readlink -f "$0") || p=$0
dir=$(dirname -- "$p")
source $dir/jalien-ce.sh
source $dir/monalisa.sh
......@@ -25,7 +27,7 @@ usage()
{
exec >&2
echo ""
echo "Usage: jalien-vobox <Command> [<Service>]"
echo "Usage: $0 <Command> [<Service>]"
echo ""
echo "<Command> is one of: $cmds"
echo "<Service> is one of: $svcs (defaulting to both if not specified)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment