{"id":147,"date":"2013-10-31T02:41:09","date_gmt":"2013-10-31T02:41:09","guid":{"rendered":"http:\/\/thomas.goirand.fr\/blog\/?p=147"},"modified":"2013-10-31T02:41:09","modified_gmt":"2013-10-31T02:41:09","slug":"openrc-runscript-example-for-rsyslog","status":"publish","type":"post","link":"http:\/\/thomas.goirand.fr\/blog\/?p=147","title":{"rendered":"OpenRC runscript example for rsyslog"},"content":{"rendered":"<p>The point of switching to a new init system is to get rid of huge init scripts. Well, here&#8217;s an example OpenRC runscript, rewriting \/etc\/init.d\/rsyslog:<\/p>\n<pre class=\"brush:shell\">#!\/sbin\/runscript\r\n\r\ncommand=\/usr\/sbin\/rsyslogd\r\nname=\"enhanced syslogd\"\r\n\r\ndepend()\r\n{\r\n        provide rsyslogd syslog\r\n        need $remote_fs $time\r\n}<\/pre>\n<pre class=\"brush:shell\">Pretty minimalistic to me... For the record, the original sysv-rc script was 126 lines, and the above is just 10 lines.<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The point of switching to a new init system is to get rid of huge init scripts. Well, here&#8217;s an example OpenRC runscript, rewriting \/etc\/init.d\/rsyslog: #!\/sbin\/runscript command=\/usr\/sbin\/rsyslogd name=&#8221;enhanced syslogd&#8221; depend() { provide rsyslogd syslog need $remote_fs $time } Pretty minimalistic to me&#8230; For the record, the original sysv-rc script was 126 lines, and the above [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=\/wp\/v2\/posts\/147"}],"collection":[{"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=147"}],"version-history":[{"count":1,"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":148,"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions\/148"}],"wp:attachment":[{"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}