sysklogd: rewrite init script
authorCarlos Santos <casantos@datacom.com.br>
Wed, 7 Nov 2018 00:49:11 +0000 (22:49 -0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Mon, 10 Dec 2018 21:15:51 +0000 (22:15 +0100)
commitb3c76a435b16c5031a1519810f93972c42869ae0
tree49458de946b4c56754154e676b766be331ce8f39
parent5e5c2e2194bc776842a917e6b54a164b8093f42f
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>
package/sysklogd/S01logging [deleted file]
package/sysklogd/S01syslogd [new file with mode: 0644]
package/sysklogd/S02klogd [new file with mode: 0644]
package/sysklogd/sysklogd.mk