Bug#545174: insserv: Please add simple "if" conditionals to disable scripts
On Mon, Jul 15, 2019 at 02:45:47PM +, Dmitry Bogatov wrote: > Checking this condition /inside/ initscript has neglectable cost (like > several /bin/sh processes) "several /bin/sh processes" is not a negligible cost. However, I reported this bug ten years ago when I still ran sysvinit, and I no longer have any interest in attempting to further enhance it.
Bug#545174: insserv: Please add simple "if" conditionals to disable scripts
On Mon, 15 Jul 2019, Dmitry Bogatov wrote: > Checking this condition /inside/ initscript has neglectable cost (like > several /bin/sh processes) and gives you flexibility to check for > conditions of arbitrary complexity. And will work when running /etc/init.d/foo restart manually. bye, //mirabilos -- tarent solutions GmbH Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/ Tel: +49 228 54881-393 • Fax: +49 228 54881-235 HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941 Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg ** Mit der tarent Academy bieten wir auch Trainings und Schulungen in den Bereichen Softwareentwicklung, Agiles Arbeiten und Zukunftstechnologien an. Besuchen Sie uns auf www.tarent.de/academy. Wir freuen uns auf Ihren Kontakt. **
Bug#545174: insserv: Please add simple "if" conditionals to disable scripts
control: close -1 control: tags -1 +wontfix Sorry for late response. [2009-09-05 06:46] Josh Triplett > Package: insserv > Version: 1.12.0-10 > Severity: wishlist > > Some scripts only need to run if some other subsystem does not. For > example, hwclock and hwclockfirst should only run if udev does not. > Currently, they must do so by always running, and checking the condition > they need. However, the condition only changes when the set of init > scripts changes; thus, ideally the script could just have no start/stop > links when it need not run. I'd propose something like this: > > X-Ignore-If: udev Please do not, keep it simple. Checking this condition /inside/ initscript has neglectable cost (like several /bin/sh processes) and gives you flexibility to check for conditions of arbitrary complexity. Closing. You still can try to convince upstream maintainer. -- Note, that I send and fetch email in batch, once in a few days. Please, mention in body of your reply when you add or remove recepients.
Bug#545174: insserv: Please add simple if conditionals to disable scripts
Package: insserv Version: 1.12.0-10 Severity: wishlist Some scripts only need to run if some other subsystem does not. For example, hwclock and hwclockfirst should only run if udev does not. Currently, they must do so by always running, and checking the condition they need. However, the condition only changes when the set of init scripts changes; thus, ideally the script could just have no start/stop links when it need not run. I'd propose something like this: X-Ignore-If: udev - Josh Triplett -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages insserv depends on: ii debconf [debconf-2.0] 1.5.27 Debian configuration management sy ii initscripts 2.87dsf-2 scripts for initializing and shutt ii libc6 2.9-26 GNU C Library: Shared libraries ii sysv-rc 2.87dsf-2 System-V-like runlevel change mech ii sysvinit-utils2.87dsf-2 System-V-like utilities insserv recommends no packages. Versions of packages insserv suggests: pn bootchart none (no description available) -- debconf information excluded -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org