svn commit: r260349 - in user/jmmv/autotest: . node node/rc.d
Julio Merino
jmmv at FreeBSD.org
Sun Jan 5 22:50:33 UTC 2014
Author: jmmv
Date: Sun Jan 5 22:50:32 2014
New Revision: 260349
URL: http://svnweb.freebsd.org/changeset/base/260349
Log:
Rename the rc.d script to autotest_node.
I don't think dashes are easily supported as the 'name' variable of an
rc.d script, and the inconsistency between the file name and the rc.conf
variables was confusing. (Actually, the setup script was broken because
it attempted to start the service using an underscore.)
To prevent confusion, just rename the script to autotest_node.
Added:
user/jmmv/autotest/node/rc.d/autotest_node.in
- copied, changed from r260341, user/jmmv/autotest/node/rc.d/autotest-node.in
Deleted:
user/jmmv/autotest/node/rc.d/autotest-node.in
Modified:
user/jmmv/autotest/README
user/jmmv/autotest/node/Makefile
Modified: user/jmmv/autotest/README
==============================================================================
--- user/jmmv/autotest/README Sun Jan 5 22:49:54 2014 (r260348)
+++ user/jmmv/autotest/README Sun Jan 5 22:50:32 2014 (r260349)
@@ -42,4 +42,4 @@ Of special interest are:
* node/configs/: Configuration files for node/iterate. node/loop picks all
of them up and runs them in sequence.
-* node/rc.d/autotest-node: rc.d script to run node/loop as a daemon.
+* node/rc.d/autotest_node: rc.d script to run node/loop as a daemon.
Modified: user/jmmv/autotest/node/Makefile
==============================================================================
--- user/jmmv/autotest/node/Makefile Sun Jan 5 22:49:54 2014 (r260348)
+++ user/jmmv/autotest/node/Makefile Sun Jan 5 22:50:32 2014 (r260349)
@@ -11,7 +11,7 @@ SYSCONFDIR= ${.CURDIR}/configs
SCRIPTS= iterate loop
.PHONY: all
-all: ${SCRIPTS} rc.d/autotest-node
+all: ${SCRIPTS} rc.d/autotest_node
.for script in ${SCRIPTS}
${script}: ${script}.sh
@@ -21,14 +21,14 @@ ${script}: ${script}.sh
"${script}.sh" | "${SHTK}" build -o "${script}" -s "${SHELL}" -
.endfor
-rc.d/autotest-node: rc.d/autotest-node.in
+rc.d/autotest_node: rc.d/autotest_node.in
sed -e "s,__AUTOTEST_BINDIR__,${BINDIR},g" \
-e 's,__AUTOTEST_ETCDIR__,${SYSCONFDIR},g' \
-e 's,__AUTOTEST_SHELL__,${SHELL},g' \
-e "s,__AUTOTEST_VARBASE__,${LOCALSTATEDIR},g" \
- rc.d/autotest-node.in >rc.d/autotest-node
- chmod +x rc.d/autotest-node
+ rc.d/autotest_node.in >rc.d/autotest_node
+ chmod +x rc.d/autotest_node
.PHONY: clean
clean:
- rm -f ${SCRIPTS} rc.d/autotest-node
+ rm -f ${SCRIPTS} rc.d/autotest_node
Copied and modified: user/jmmv/autotest/node/rc.d/autotest_node.in (from r260341, user/jmmv/autotest/node/rc.d/autotest-node.in)
==============================================================================
--- user/jmmv/autotest/node/rc.d/autotest-node.in Sun Jan 5 22:38:44 2014 (r260341, copy source)
+++ user/jmmv/autotest/node/rc.d/autotest_node.in Sun Jan 5 22:50:32 2014 (r260349)
@@ -23,8 +23,8 @@ PATH="/usr/local/bin:/usr/local/sbin:${P
name="autotest_node"
rcvar="autotest_node_enable"
-logfile="__AUTOTEST_VARBASE__/log/autotest-node.log"
-pidfile="__AUTOTEST_VARBASE__/run/autotest-node.pid"
+logfile="__AUTOTEST_VARBASE__/log/autotest_node.log"
+pidfile="__AUTOTEST_VARBASE__/run/autotest_node.pid"
command="__AUTOTEST_BINDIR__/loop"
command_interpreter="__AUTOTEST_SHELL__"
command_args="-b -d 60 -l '${logfile}' -p '${pidfile}'"
More information about the svn-src-user
mailing list