Michael Biebl <biebl@debian.org> writes:
> Marc 'HE' Brockschmidt wrote:
>> Petter Reinholdtsen <pere@hungry.com> writes:
>>> [Marc Brockschmidt]
>>>> I don't see how this is relevant to detect in which runlevels avahi
>>>> should be started. My basic idea:
>>> I agree. I believe this approach should work just fine for any
>>> sysv-based boot system, independend of the use of insserv.
>>
>> I haven't seen any movement wrt this problem. Is there something
>> planned, or do I need to NMU?
> Maybe I just missed it, but was there actually a consensus what exactly
> should be done within the avahi package?
>
> If so, could you please restate your requested changes in detail.
<[🔎] 87tzcsm8om.fsf@pindar.marcbrockschmidt.de> and
<[🔎] 874p4mbgde.fsf@pindar.marcbrockschmidt.de> were both CCed to
you. Summary:
| What about a simple solution: Ask dpkg if sysvrc is installed. If not:
| Do the update-rc.d remove/start dance as currently implemented. If it
| used, check the current state of /etc/rc?.d/ and insert the new links
| accordingly to that. Would you be willing to implement this? It wouldn't
| worsen the situation, would improve it for a large majority of users and
| doesn't require APIs that are not available (yet).
...
| My basic idea:
| name="avahi";
| start="";
| stop="";
| for i in `seq 0 9` "S"; do
| if [ -e /etc/rc${i}.d/S??${name} ]; then
| start="$start $i";
| elif [ -e /etc/rc${i}.d/K??${name} ]; then
| stop="$stop $i";
| fi;
| done;
| echo "Start: $start";
| echo "Stop: $stop"
Marc
--
BOFH #413:
Cow-tippers tipped a cow onto the server.
Attachment:
pgp_LIOkeMdb6.pgp
Description: PGP signature