OpenRC runscript example for rsyslog

The point of switching to a new init system is to get rid of huge init scripts. Well, here’s an example OpenRC runscript, rewriting /etc/init.d/rsyslog:

#!/sbin/runscript

command=/usr/sbin/rsyslogd
name="enhanced syslogd"

depend()
{
        provide rsyslogd syslog
        need $remote_fs $time
}
Pretty minimalistic to me... For the record, the original sysv-rc script was 126 lines, and the above is just 10 lines.