I have a K.I.S.S. solution I have been running for a while. Just source the zm.conf file into the init script and then use the variables there for the mysql test. The way I'm doing it is:
. /usr/local/etc/zm.conf while : ; do echo "USE zm; SELECT Username from Users where Id=1;" | \ /usr/local/bin/mysqltest -h ${ZM_DB_HOST} -u ${ZM_DB_USER} -p${ZM_DB_PASS} ${ZM_DB_NAME} > /dev/null 2>&1 && return -- View this message in context: http://freebsd.1045724.n5.nabble.com/multimedia-zoneminder-rc-script-runs-mysql-commands-tp5137566p5613799.html Sent from the freebsd-ports mailing list archive at Nabble.com. _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"