aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2021-10-20 20:22:10 +0000
committerrodri <rgl@antares-labs.eu>2021-10-20 20:22:10 +0000
commit0bef22e73c45f37eb1f9f91fccb58caf4956c910 (patch)
tree47d8bcde9877b25644127358f1e423194cbf485f
parent0f6ff3b8ef4d0747112f1087d8cced7c9a16eb5f (diff)
downloadbhyve-rc.d-0bef22e73c45f37eb1f9f91fccb58caf4956c910.tar.gz
bhyve-rc.d-0bef22e73c45f37eb1f9f91fccb58caf4956c910.tar.bz2
bhyve-rc.d-0bef22e73c45f37eb1f9f91fccb58caf4956c910.zip
correct diagnostic output redirections.
re-organize the files to make more sense.
-rwxr-xr-xetc/rc.d/bhyve_coeus (renamed from bhyve_coeus)4
-rwxr-xr-xetc/rc.d/bhyve_linux (renamed from bhyve_linux)4
-rwxr-xr-xetc/rc.d/bhyve_test (renamed from bhyve_test)4
3 files changed, 6 insertions, 6 deletions
diff --git a/bhyve_coeus b/etc/rc.d/bhyve_coeus
index e6f443a..514616d 100755
--- a/bhyve_coeus
+++ b/etc/rc.d/bhyve_coeus
@@ -41,10 +41,10 @@ bhyve_status()
local pid=$(ps axo pid,command | egrep "${vmname}.*\\(bhyve\\)" | awk '{print $1}')
if [ ! -z $pid ];then
- echo $name is running with pid $pid. 2>&1
+ echo $name is running with pid $pid. 1>&2
return 0
else
- echo $name is not running.
+ echo $name is not running. 1>&2
fi
}
diff --git a/bhyve_linux b/etc/rc.d/bhyve_linux
index 117c0e7..08a0865 100755
--- a/bhyve_linux
+++ b/etc/rc.d/bhyve_linux
@@ -41,10 +41,10 @@ bhyve_status()
local pid=$(ps axo pid,command | egrep "${vmname}.*\\(bhyve\\)" | awk '{print $1}')
if [ ! -z $pid ];then
- echo $name is running with pid $pid. 2>&1
+ echo $name is running with pid $pid. 1>&2
return 0
else
- echo $name is not running.
+ echo $name is not running. 1>&2
fi
}
diff --git a/bhyve_test b/etc/rc.d/bhyve_test
index a20cf0f..afdcd0e 100755
--- a/bhyve_test
+++ b/etc/rc.d/bhyve_test
@@ -41,10 +41,10 @@ bhyve_status()
local pid=$(ps axo pid,command | egrep "${vmname}.*\\(bhyve\\)" | awk '{print $1}')
if [ ! -z $pid ];then
- echo $name is running with pid $pid. 2>&1
+ echo $name is running with pid $pid. 1>&2
return 0
else
- echo $name is not running.
+ echo $name is not running. 1>&2
fi
}