X-Git-Url: https://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/50a18b7793d1cd69f1ec69f75567f6271d540cdd..b0e0987d30dc410df79d1033c314e2dbbf4fb26f:/blog/data/2013-11-02-debian-init-d-script.txt diff --git a/blog/data/2013-11-02-debian-init-d-script.txt b/blog/data/2013-11-02-debian-init-d-script.txt index d760aac9b9..8756d3beba 100644 --- a/blog/data/2013-11-02-debian-init-d-script.txt +++ b/blog/data/2013-11-02-debian-init-d-script.txt @@ -1,5 +1,5 @@ Title: Debian init.d boot script example for rsyslog -Tags: english, debian +Tags: english, debian, bootsystem Date: 2013-11-02 22:40

If one of the points of switching to a new init system in Debian is @@ -27,7 +27,7 @@ DAEMON=/usr/sbin/rsyslogd

Pretty minimalistic to me... For the record, the original sysv-rc -script was 126 lines, and the above is just 15 lines, most of the meta +script was 137 lines, and the above is just 15 lines, most of it meta info/comments.

How to do this, you ask? Well, one create a new script @@ -184,10 +184,12 @@ esac

It is based on /etc/init.d/skeleton, and could be improved quite a -lot. I did not try hard to optimize it nor make it more robust.

+lot. I did not really polish the approach, so it might not always +work out of the box, but you get the idea. I did not try very hard to +optimize it nor make it more robust either.

A better argument for switching init system in Debian than reducing the size of init scripts (which is a good thing to do anyway), is to get boot system that is able to handle the kernel events sensibly and -robustly, and do not depend the boot to run sequentially. The boot -and the kernel have not behaved sequentially in year.

+robustly, and do not depend on the boot to run sequentially. The boot +and the kernel have not behaved sequentially in years.