Subject kind of says it all...

I was reading manpages and I don't think there's a way, so I thought I'd ask.

I've been merging/unmerging packages for testing and some have to be started via a daemon, so I've had to add them to /etc/runlevels/* via rc-update.

The problem is I was removing packages without doing `rc-update del <service> <runlevel>`, leaving them added in the runlevel with no valid script/symlink.

Now, I could just do `ls -al /etc/runlevels/*` and search manually for broken symlinks and then manually remove them.

It seems that `rc-update -a` parses /etc/init.d/* and looks for matching symlinks in /etc/runlevels, but not the other way around.

It looks like rc-update has a "-a" parameter that deals with broken symlinks but it still requires a service name which is not listed any more in /etc/init.d.

I did test this, `rc-update -v show` did not show NetworkManager (which I'd removed. Manual inspection of /etc/runlevels showed a broken link. I then ran `rc-update del NetworkManager default`, which worked even though it isn't listed in the rc-update output.

Or am I overthinking things? Or maybe I'm just getting too tired to think about this. :o)

Dan

Reply via email to