Files
buildroot/package
Adam Duskett bc66a64193 package/openrc: cleanup sysv-rcs script
Currently, the sysv-rcs script has two issues:
  - The return code of each RCS script is not checked.
  - The output does not match the formatting of the other openrc
    init scripts.

Modify the script in the following ways to fix both issues:
  - Remove the "einfo "Starting sysv rc scripts"" at the top of the
    start function in favor of "einfo "Starting $i" in the loop
    itself.

  - Add a "> /dev/null" to the end of $i start; this suppresses
    stdout while still allowing for stderr messages to print to the
    terminal.

  - add an "eend $? to both the start and stop functions, this
    allows for openrc to show if an RCS script returned 0 or
    not.

The following is the startup output of OpenRC on a minimal system
with S01syslogd modified to exit with a return code 1 for testing
purposes:

Before:
 * Adding static routes ...
 [ ok ]
Starting default runlevel
 * Starting sysv rc scripts
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK

After:
 * Adding static routes ...
 [ ok ]
Starting default runlevel
 * Starting /etc/init.d/S01syslogd ...
 [ !! ]
 * Starting /etc/init.d/S02klogd ...
 [ ok ]
 * Starting /etc/init.d/S02sysctl ...
 [ ok ]

Signed-off-by: Adam Duskett <aduskett@greenlots.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-12-21 23:02:36 +01:00
..
2019-12-08 14:31:26 +01:00
2019-11-28 20:08:42 +01:00
2019-12-16 22:42:49 +01:00
2019-11-10 20:37:35 +01:00
2019-10-27 10:09:37 +01:00
2019-10-27 12:47:05 +01:00
2019-12-02 09:39:41 +01:00
2019-10-22 20:41:27 +02:00
2019-12-08 08:33:41 +01:00
2019-12-02 13:57:11 +01:00
2019-11-10 14:32:08 +01:00
2019-12-08 08:33:26 +01:00
2019-11-24 12:15:40 +01:00
2019-10-21 21:15:52 +02:00
2019-12-08 15:39:57 +01:00
2019-11-28 20:25:24 +01:00
2019-12-08 23:25:05 +01:00
2019-12-16 22:38:22 +01:00
2019-12-02 22:24:26 +01:00
2019-10-22 23:27:58 +02:00
2019-11-16 23:44:39 +01:00
2019-10-29 10:42:15 +01:00
2019-11-24 22:18:12 +01:00
2019-10-21 23:22:52 +02:00
2019-10-26 16:26:56 +02:00
2019-12-08 14:33:09 +01:00
2019-12-18 10:13:47 +01:00
2019-11-18 22:12:21 +01:00
2019-11-04 21:58:37 +01:00
2019-11-18 23:23:44 +01:00
2019-11-29 14:10:54 +01:00
2019-11-07 21:09:45 +01:00
2019-10-21 21:36:51 +02:00
2019-10-27 10:09:53 +01:00
2019-11-13 22:32:10 +01:00
2019-12-02 22:25:38 +01:00
2019-10-27 16:35:15 +01:00
2019-10-31 23:19:11 +01:00
2019-12-02 09:39:41 +01:00
2019-12-05 23:19:12 +01:00
2019-11-16 23:46:39 +01:00
2019-12-02 09:39:41 +01:00
2019-12-08 13:57:36 +01:00
2019-11-04 22:39:26 +01:00
2019-12-16 22:51:32 +01:00
2019-11-08 20:15:21 +01:00
2019-10-21 23:33:59 +02:00
2019-12-19 18:04:49 +01:00
2019-11-29 11:38:34 +01:00
2019-10-22 20:40:48 +02:00
2019-10-21 21:40:56 +02:00
2019-11-19 17:30:48 +01:00
2019-11-05 21:45:27 +01:00
2019-12-08 08:39:58 +01:00
2019-12-08 13:58:32 +01:00
2019-11-23 19:23:37 +01:00
2019-12-08 08:52:00 +01:00
2019-10-26 12:32:25 +02:00
2019-12-16 23:33:44 +01:00