This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgHarald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/11880 )
Change subject: Update default config
......................................................................
Update default config
Rename default config to match the binary name and add config exampe.
Change-Id: Iabfc78c95e904af7372f10c195b2b979675d34f3
Related: SYS#2655
---
M Makefile.am
M configure.ac
A doc/Makefile.am
A doc/examples/Makefile.am
A doc/examples/osmo-sysmon.cfg
M osysmon_main.c
6 files changed, 18 insertions(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
Harald Welte: Looks good to me, approved
diff --git a/Makefile.am b/Makefile.am
index 9ad5947..5eb1cfb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
+SUBDIRS = doc
+
AM_CPPFLAGS = \
$(all_includes) \
-I$(top_srcdir) \
diff --git a/configure.ac b/configure.ac
index 7f5ae80..13082b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -127,4 +127,6 @@
AM_CONFIG_HEADER(config.h)
AC_OUTPUT(
+ doc/Makefile
+ doc/examples/Makefile
Makefile)
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 0000000..aee2d7b
--- /dev/null
+++ b/doc/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = examples
diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
new file mode 100644
index 0000000..cf728a4
--- /dev/null
+++ b/doc/examples/Makefile.am
@@ -0,0 +1,7 @@
+examples_sysmondir = $(docdir)/examples/osmo-sysmon
+examples_sysmon_DATA = osmo-sysmon.cfg
+
+osmoconfdir = $(sysconfdir)/osmocom
+osmoconf_DATA = osmo-sysmon.cfg
+
+EXTRA_DIST = osmo-sysmon.cfg
diff --git a/doc/examples/osmo-sysmon.cfg b/doc/examples/osmo-sysmon.cfg
new file mode 100644
index 0000000..933df93
--- /dev/null
+++ b/doc/examples/osmo-sysmon.cfg
@@ -0,0 +1,5 @@
+ctrl-client bsc 127.0.0.1 4249
+ get-variable bts_connection_status
+ get-variable msc.0.connection_status
+netdev eth0
+netdev tun0
diff --git a/osysmon_main.c b/osysmon_main.c
index 98859ed..5983212 100644
--- a/osysmon_main.c
+++ b/osysmon_main.c
@@ -70,7 +70,7 @@
};
-static const char *config_file = "osysmon.cfg";
+static const char *config_file = "osmo-sysmon.cfg";
struct osysmon_state *g_oss;
--
To view, visit https://gerrit.osmocom.org/11880
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-sysmon
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Iabfc78c95e904af7372f10c195b2b979675d34f3
Gerrit-Change-Number: 11880
Gerrit-PatchSet: 2
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181122/7e3627df/attachment.htm>