#NEWLINE# def GenInit( svc , desc , start = ( '2' , '3' , '4' , '5' ) , stop = '1' ) : #NEWLINE# #INDENT# insserv = '\n    $local_fs   +umountfs\n    $network    +networking\n    $remote_fs  $local_fs +umountnfs +sendsigs\n    $syslog     +rsyslog +sysklogd +syslog-ng +dsyslog +inetutils-syslogd\n    ' #NEWLINE# tmpl = ( '\n    ### BEGIN INIT INFO\n    # Provides:             %s\n    # Required-Start:       $remote_fs $syslog\n    # Required-Stop:        $syslog\n    # Default-Start:        %s\n    # Default-Stop:         %s\n    # Short-Description:    %s\n    ### END INIT INFO\n    ' % ( svc , ' ' . join ( start ) , ' ' . join ( stop ) , desc ) ) #NEWLINE# return { #NEWLINE# #INDENT# '/etc/insserv.conf' : tmpl , #NEWLINE# ( '/etc/init.d/%s' % svc ) : tmpl , #NEWLINE# #UNINDENT# }