tmcd.restart.in 293 Bytes
Newer Older
1
#!/bin/sh
Mike Hibler's avatar
Mike Hibler committed
2 3
#
# EMULAB-COPYRIGHT
Leigh B Stoller's avatar
Leigh B Stoller committed
4
# Copyright (c) 2001-2010 University of Utah and the Flux Group.
Mike Hibler's avatar
Mike Hibler committed
5 6
# All rights reserved.
#
7

8
DIR=@prefix@/sbin
9

10 11
if [ -f /var/run/tmcd.pid ]
then
Leigh B Stoller's avatar
Leigh B Stoller committed
12
	kill `cat /var/run/tmcd.pid` >/dev/null 2>&1
13 14 15
	rm -f /var/run/tmcd.pid
fi

16
sleep 1
17 18
${DIR}/tmcd -i @BOSSNODE_IP@
exit 0