On Wed, 5 Feb 2014 22:31:09 +0100 Petter Reinholdtsen <p...@hungry.com> wrote:
> A few months ago I drafted an idea to rewrite init.d scripts to use a > common implementation and only specify the unique parts in the init.d > scripts themselves. That draft can be found on > <URL: > http://people.skolelinux.org/pere/blog/Debian_init_d_boot_script_example_for_rsyslog.html > >. ... > Short and to the point, and in the simple case only list the path to > the daemon to start. The code to implement init.d scripts is moved to > /lib/init/init-d-script, and the redundant code spread across > /etc/init.d/ can be dropped. > > A few days ago I picked up the idea again, and wrote a more complete > draft of the /lib/init/init-d-script. The code is available in the > simpler-init-scripts in the sysvinit GIT repository, available from > <URL: > http://anonscm.debian.org/gitweb/?p=collab-maint/sysvinit;a=shortlog;h=refs/heads/simpler-init-scripts > >. > I've tested it on a few packages, and believe the code is ready for > wider testing. ... > The reason I bring this up on debian-devel@ is twofold. First, I want > to gather feedback on the idea. Will it work for your package, or are > some more hooks needed? Second, I wonder where such script best would > belong. My initial idea is to put it in the initscripts package, > installed on almost all Debian systems, but I suspect sysvinit-utils > is a good place too. I plan to use the system in the initscripts > package, and am relucant to add new dependencies to it, as this would > make the new dependency a required package. > > Comments? Looks nice, I drafted a similar idea, please look here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=727708#871 -- http://markorandjelovic.hopto.org -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20140210044541.535b7...@eunet.rs