summaryrefslogtreecommitdiffstats
path: root/package/busybox/S01logging
Commit message (Collapse)AuthorAgeFilesLines
* busybox: rewrite logging init scriptCarlos Santos2018-12-101-40/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Split S01logging into S01syslogd and S02klogd. Install them only if no other syslog package is selected and the corresponding daemons are selected in the Busybox configuration. - Support /etc/default/$DAEMON configuration files. - Detect and report start/stop errors (previous version ignored them and always reported OK). - Use a separate function for restart. - Implement reload as restart. The dependency of busybox on rsyslog and syslog-ng was only needed because those packages also installed S01logging. Since now they no longer install the same file, these dependencies are no longer needed. The dependency on sysklogd is still needed since that one installs the syslogd and klogd executables with the same name as busybox. The -n option of syslogd/klogd is obligatory because start-stop-daemon starts it in the background. Therefore, move it out of the SYSLOGD_ARGS resp. KLOGD_ARGS variable so the user can no longer remove it. Signed-off-by: Carlos Santos <casantos@datacom.com.br> Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com> [Arnout: keep dependency on sysklogd] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* busybox: fix usage string in S01loggingFlorian La Roche2018-06-051-1/+1
| | | | | | | | In busybox fix the S01logging usage text to document the "reload" target. Signed-off-by: Florian La Roche <F.LaRoche@pilz.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* busybox: Make S01logging source a default fileNicolas Cavallari2016-03-091-2/+6
| | | | | | | | | | | | The default syslog parameters are to keep only 200-400 KiB of logs, which is very few if there is a spammy daemon on the system, or a daemon that fails and then spams errors that hides the original problem. Make S01logging source a /etc/default/logging file where these parameters can be overridden. Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package: Replace 'echo -n' by 'printf'Maxime Hadjinlian2015-10-041-2/+2
| | | | | | | | | | | | 'echo -n' is not a POSIX construct (no flag support), we shoud use 'printf', especially in init script. This patch was generated by the following command line: git grep -l 'echo -n' -- `git ls-files | grep -v 'patch'` | xargs sed -i 's/echo -n/printf/' Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* busybox: S01logging: implement restartRichard Genoud2015-02-011-4/+14
| | | | | | | | restart wasn't doing anything, and the expected behaviour is stop/start. Signed-off-by: Richard Genoud <richard.genoud@gmail.com> Acked-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* busybox: minor fixes to S01logging bootscriptJavier Viguera2013-11-061-2/+2
| | | | | | | | | | | | | | | | | * The PID file is not created unless the '-m' option is passed to start-stop-daemon. * Remove the mark '-m 0' option as it's not supported by busybox's syslogd. * Syslogd and Klogd forks to background by default giving as a result that the pid stored in the PID file is not correct. Let the background job be done by 'start-stop-daemon' by passing '-n' (foreground) to the daemons and '-b' to start-stop-daemon. This way the pid stored in the PID files is correct. Signed-off-by: Javier Viguera <javier.viguera@digi.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Fix path to pidfileTilman Keskinöz2013-03-311-2/+2
| | | | | | Signed-off-by: Tilman Keskinöz <arved@arved.at> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Remove stray $ character from a bunch of init scriptsLuca Ceresoli2012-03-151-1/+1
| | | | | Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Fix colon location in S01logging scriptH Hartley Sweeten2011-07-131-2/+2
| | | | | | | | | | | | | The S01logging script currently displays the start/stop messages like this: Start logging :OK The normal form for these messages is: Start logging: OK Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Rework the logging daemons startupMaxime Ripard2011-07-041-0/+26
The logging mechanism startup being in inittab, it isn't easy to overcharge the default policy. With this patch, the startup of the syslog daemon is moved to an init.d script, that can easily be overwritten. [Peter: use install -D] Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
OpenPOWER on IntegriCloud