setup-disk tries to restart syslog even if it is not running
If setup disk is called from e.g. an initscript before syslog has been started then it logs:
ERROR: cannot start syslog as hostname would not start
Which is rather misleading as syslog will be started later in the bootsequence.
Using condrestart
in place of restart
avoids this message:
--- a/alpine/sbin/setup-disk
+++ b/alpine/sbin/setup-disk
@@ -661,7 +661,7 @@ setup_var() {
mv /.var/* /var/
rmdir /.var
- /etc/init.d/syslog --quiet restart
+ service --quiet syslog condrestart
setup_mdadm_conf
}
While at it switch to service
which AIUI is recommended over calling
the initscript directly (although with openrc-run
I don’t know how
much difference it really makes)
(from redmine: issue id 5719, created on 2016-06-13, closed on 2016-06-24)
- Changesets:
- Revision cf023ac1ffecfdcc1997ee7b8e57cacdde62870e by Natanael Copa on 2016-06-13T13:34:02Z:
setup-disk: only restart syslog if its already running
ref #5719
- Revision cffed188 by Natanael Copa on 2016-06-13T13:42:00Z:
main/alpine-conf: setup-disk: only restart syslog if its running
ref #5719
- Revision 53156fad by Natanael Copa on 2016-06-17T16:39:26Z:
main/alpine-conf: upgrade to 3.4.1
fixes #5719