- Update matahari.sysconf to support console specific
parameters
- Update initscript to capture and process any console
specific parameters
Signed-off-by: Adam Stokes <astokes(a)fedoraproject.org>
---
matahari.init.in | 4 ++++
matahari.sysconf.in | 6 ++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/matahari.init.in b/matahari.init.in
index c8774a1..d3d3700 100644
--- a/matahari.init.in
+++ b/matahari.init.in
@@ -43,6 +43,10 @@ start() {
MATAHARI_AGENT_ARGS="$MATAHARI_AGENT_ARGS $@BASE@_AGENT_ARGS"
fi
+ if [ ! -z "$@BASE@_CONSOLE_ARGS" ]; then
+ MATAHARI_AGENT_ARGS="$MATAHARI_AGENT_ARGS $MATAHARI_CONSOLE_ARGS
$@BASE@_CONSOLE_ARGS"
+ fi
+
daemon $PROCESS $MATAHARI_AGENT_ARGS --daemon
RETVAL=$?
echo
diff --git a/matahari.sysconf.in b/matahari.sysconf.in
index 0c04bbe..4d69015 100644
--- a/matahari.sysconf.in
+++ b/matahari.sysconf.in
@@ -9,6 +9,12 @@
# Other options that all agents should observe
MATAHARI_AGENT_ARGS="--reconnect=yes"
+# Other options that all consoles should observe
+# MATAHARI_CONSOLE_ARGS=...
+
# Per agent options
# host_AGENT_ARGS=...
# network_AGENT_ARGS=...
+
+# Per console options
+# sysconfig_CONSOLE_ARGS=...
\ No newline at end of file
--
1.7.6