aboutsummaryrefslogtreecommitdiff
path: root/cmd/Makemodule.am
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-06-06 14:59:12 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-06-11 19:45:42 +0200
commitd9f883f2151a026d25277d57d56aa045417dd3bb (patch)
tree0169a56a846e0b9e4fb931e4866c1f8a9e432387 /cmd/Makemodule.am
parentf52c7ea9d045db3a1f313f92ef786cbb58594a50 (diff)
Add utility for producing syslog message from the shell
This can can be used by shell scripts to produce syslog messages, as well as aiding in debugging the usyslogd daemon. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'cmd/Makemodule.am')
-rw-r--r--cmd/Makemodule.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/Makemodule.am b/cmd/Makemodule.am
index f92610c..f4559a9 100644
--- a/cmd/Makemodule.am
+++ b/cmd/Makemodule.am
@@ -32,6 +32,16 @@ service_CFLAGS = $(AM_CFLAGS)
service_LDFLAGS = $(AM_LDFLAGS)
service_LDADD = libinit.a libcfg.a
+if USYSLOGD
+syslog_SOURCES = cmd/syslog.c
+syslog_CPPFLAGS = $(AM_CPPFLAGS)
+syslog_CFLAGS = $(AM_CFLAGS)
+syslog_LDFLAGS = $(AM_LDFLAGS)
+syslog_LDADD = libinit.a
+
+bin_PROGRAMS += syslog
+endif
+
EXTRA_DIST += $(SRVHEADERS)
sbin_PROGRAMS += service reboot shutdown