Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Is there a way to list orphaned services?
Date: Fri, 13 Dec 2019 11:17:47
Message-Id: 4521868.3yx2EK1HJR@dell_xps
In Reply to: Re: [gentoo-user] Is there a way to list orphaned services? by Neil Bothwick
1 On Friday, 13 December 2019 07:47:43 GMT Neil Bothwick wrote:
2 > On Thu, 12 Dec 2019 16:52:21 -0800, Daniel Frey wrote:
3 > > I've been merging/unmerging packages for testing and some have to be
4 > > started via a daemon, so I've had to add them to /etc/runlevels/* via
5 > > rc-update.
6 > >
7 > > The problem is I was removing packages without doing `rc-update del
8 > > <service> <runlevel>`, leaving them added in the runlevel with no valid
9 > > script/symlink.
10 > >
11 > > Now, I could just do `ls -al /etc/runlevels/*` and search manually for
12 > > broken symlinks and then manually remove them.
13 >
14 > How about:
15 >
16 > find -L /etc/runlevels -type l
17
18 I seem to also have a few dangling on an old PC here!
19
20 $ find -L /etc/runlevels -type l
21 /etc/runlevels/boot/tmpfiles.setup
22 /etc/runlevels/boot/alsasound
23 /etc/runlevels/boot/swapfiles
24 /etc/runlevels/default/modules-load
25 /etc/runlevels/default/vixie-cron
26
27 Is it a matter of just deleting them?
28 --
29 Regards,
30 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Is there a way to list orphaned services? Peter Humphrey <peter@××××××××××××.uk>
Re: [gentoo-user] Is there a way to list orphaned services? Daniel Frey <djqfrey@×××××.com>