OPT_C_CONFIG=""
OPT_PID_DIR=""
+# ---------------------------------------------------------------------------
+# Make sure we're running as the correct user
+# ---------------------------------------------------------------------------
+[ $(whoami) != 'openesrf' ] && echo 'Must run as user "opensrf"' && exit;
+
+
# NOTE: Eventually, there will be one OpenSRF config file format
# When this happens, we will only need a single OPT_CONFIG variable
PID_OSRF_C="$OPT_PID_DIR/osrf_c.pid";
-
# ---------------------------------------------------------------------------
# Utility code for checking the PID files
# ---------------------------------------------------------------------------