On Friday, 13 December 2019 11:17:26 GMT Mick wrote:
> On Friday, 13 December 2019 07:47:43 GMT Neil Bothwick wrote:
> > On Thu, 12 Dec 2019 16:52:21 -0800, Daniel Frey wrote:
> > > 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.
> > 
> > How about:
> > 
> > find -L /etc/runlevels -type l

That returns a null result here.

> I seem to also have a few dangling on an old PC here!
> 
> $ find -L /etc/runlevels -type l
> /etc/runlevels/boot/tmpfiles.setup
> /etc/runlevels/boot/alsasound
> /etc/runlevels/boot/swapfiles
> /etc/runlevels/default/modules-load
> /etc/runlevels/default/vixie-cron
> 
> Is it a matter of just deleting them?

I think so, as they don't point to anything.  I don't have any of them here.

Here, tmpfiles.setup is opentmpfiles.setup, and swapfiles is swap, so I 
imagine those can go. If no package owns any of them, I can't imagine any harm 
coming from deleting them.

-- 
Regards,
Peter.




Reply via email to