[Pkg-sysvinit-devel] Provide /lib/init/init-d-script for short and simple init.d scripts?
Petter Reinholdtsen
pere at hungry.com
Sun Nov 3 08:02:36 UTC 2013
Hi.
Should we create and include something like /lib/init/init-d-script as
described in
<URL: http://people.skolelinux.org/pere/blog/Debian_init_d_boot_script_example_for_rsyslog.html > to allow
the packages with simple init.d scripts to get away with creating
init.d scripts looking like this:
#!/lib/init/init-d-script
### BEGIN INIT INFO
# Provides: rsyslog
# Required-Start: $remote_fs $time
# Required-Stop: umountnfs $time
# X-Stop-After: sendsigs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: enhanced syslogd
# Description: Rsyslog is an enhanced multi-threaded syslogd.
# It is quite compatible to stock sysklogd and can be
# used as a drop-in replacement.
### END INIT INFO
DESC="enhanced syslogd"
DAEMON=/usr/sbin/rsyslogd
It would allow the majority of Debian packages with init.d scripts to
cut down their init.d script code length a lot, and allow us to
centrally control the behaviour of all these scripts.
Not quite sure in what package we should put it, as the
/lib/init/init-d-script should be available for users of sysv-rc,
file-rc, systemd and upstart. Any suggestions?
--
Happy hacking
Petter Reinholdtsen
More information about the Pkg-sysvinit-devel
mailing list