Merge branch 'master' of github.com:janvidar/uhub
This commit is contained in:
commit
ccaf755da3
|
@ -31,7 +31,8 @@ fi
|
||||||
# Check that networking is up.
|
# Check that networking is up.
|
||||||
[ ${NETWORKING} = "no" ] && exit 1
|
[ ${NETWORKING} = "no" ] && exit 1
|
||||||
|
|
||||||
# Check that uhub.conf exists.
|
# Check that bin and uhub.conf exists.
|
||||||
|
[ -f $UHUBBINFILE ] || exit 6
|
||||||
[ -f /etc/uhub/uhub.conf ] || exit 6
|
[ -f /etc/uhub/uhub.conf ] || exit 6
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
@ -40,7 +41,7 @@ RETVAL=0
|
||||||
start() {
|
start() {
|
||||||
KIND="Uhub"
|
KIND="Uhub"
|
||||||
echo -n $"Starting $KIND services: "
|
echo -n $"Starting $KIND services: "
|
||||||
daemon uhub $UHUBOPTIONS
|
daemon $UHUBBINFILE $UHUBOPTIONS
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo ""
|
echo ""
|
||||||
return $RETVAL
|
return $RETVAL
|
||||||
|
@ -49,7 +50,7 @@ start() {
|
||||||
stop() {
|
stop() {
|
||||||
KIND="Uhub"
|
KIND="Uhub"
|
||||||
echo -n $"Shutting down $KIND services: "
|
echo -n $"Shutting down $KIND services: "
|
||||||
killproc uhub
|
killproc $UHUBBINFILE
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo ""
|
echo ""
|
||||||
return $RETVAL
|
return $RETVAL
|
||||||
|
@ -77,7 +78,7 @@ relog() {
|
||||||
}
|
}
|
||||||
|
|
||||||
rhstatus() {
|
rhstatus() {
|
||||||
status uhub
|
status $UHUBBINFILE
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
if [ $RETVAL -ne 0 ] ; then
|
if [ $RETVAL -ne 0 ] ; then
|
||||||
return $RETVAL
|
return $RETVAL
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
# locate bin file
|
||||||
|
UHUBBINFILE=/usr/bin/uhub
|
||||||
|
|
||||||
# Options to UHUB
|
# Options to UHUB
|
||||||
# -v Verbose mode. Add more -v's for higher verbosity.
|
# -v Verbose mode. Add more -v's for higher verbosity.
|
||||||
# -q Quiet mode - no output
|
# -q Quiet mode - no output
|
||||||
|
|
Loading…
Reference in New Issue