Package: rcconf
Version: 2.5
Severity: wishlist

I have an idea to make rcconf much less trouble-prone:
don't store any state at all, and instead just rely and change what you
find on disk.

I.e., maybe the problems mentioned on the man page can be fixed by
eliminating /var/lib/rcconf/services , and instead just using the state
as found on disk:

Just scanning each /etc/init.d/*'s
# Default-Start:     2 3 4 5...
# Default-Stop:      0 1 6...
and comparing them to what is on disk:
If all the mentioned start links are there in /etc/rc?.d/*, we list [*].
If only some of them are there, we list [B] (Broken, but the user can
  toggle this to [ ] or [*] to fix it (OK, maybe not possible via
  whiptail or whatever, but you get the idea.)
If none of the start links are there, we list [ ].

If the user toggles to [ ], we remove all the start links.
If the user toggles to [*], add all the start links as found in Default-Start.

No need for Guide Files either. If the user uses --guide, then the
"Description" lines are also read from /etc/init.d/*. Works even when
they also use --expert.

Anyway, there are usually oh, 100+ files on the users /etc/init.d/* so it
is not too slow.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to