aboutsummaryrefslogtreecommitdiff
path: root/package/sysklogd/sysklogd.mk
diff options
context:
space:
mode:
authorGravatar Carlos Santos <casantos@datacom.com.br>2018-11-06 22:49:11 -0200
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2018-12-10 22:15:51 +0100
commitb3c76a435b16c5031a1519810f93972c42869ae0 (patch)
tree49458de946b4c56754154e676b766be331ce8f39 /package/sysklogd/sysklogd.mk
parent5e5c2e2194bc776842a917e6b54a164b8093f42f (diff)
downloadbuildroot-b3c76a435b16c5031a1519810f93972c42869ae0.tar.gz
buildroot-b3c76a435b16c5031a1519810f93972c42869ae0.tar.bz2
sysklogd: rewrite init script
- Split it into S01syslogd and S02klogd to make every init script be called the same as the executable it starts. - Implement start, stop, restart and reload as functions, like in other init scripts, using start-stop-daemon. - Indent with tabs, not spaces. - Detect and report start/stop errors (previous version ignored them and always reported OK). - Support /etc/default/$DAEMON configuration files. - Do not kill syslogd in "reload". Send a SIGHUP signal, instructing it to perform a re-initialization. - Do not kill klogd in "reload". Send a signal (default 0, which does nothing). Users can configure this signal in /etc/default/klogd to either SIGUSR1 or SIGUSR2. Signed-off-by: Carlos Santos <casantos@datacom.com.br> Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Diffstat (limited to 'package/sysklogd/sysklogd.mk')
-rw-r--r--package/sysklogd/sysklogd.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/sysklogd/sysklogd.mk b/package/sysklogd/sysklogd.mk
index c4f064c10b..976438c110 100644
--- a/package/sysklogd/sysklogd.mk
+++ b/package/sysklogd/sysklogd.mk
@@ -23,8 +23,10 @@ define SYSKLOGD_INSTALL_TARGET_CMDS
endef
define SYSKLOGD_INSTALL_INIT_SYSV
- $(INSTALL) -m 755 -D package/sysklogd/S01logging \
- $(TARGET_DIR)/etc/init.d/S01logging
+ $(INSTALL) -m 755 -D package/sysklogd/S01syslogd \
+ $(TARGET_DIR)/etc/init.d/S01syslogd
+ $(INSTALL) -m 755 -D package/sysklogd/S02klogd \
+ $(TARGET_DIR)/etc/init.d/S02klogd
endef
define SYSKLOGD_INSTALL_INIT_SYSTEMD