Duplicate CUPS entry in Status -> Services table

Today I noticed a duplicate entry for CUPS in the Status -> Services table. Also, Samba does not have the “Boot” checkbox.

I do not run both services, I just needed some Samba libraries for FreeRADIUS to start.

How can I get rid of the duplicate CUPS entry and eventually bring back the “Boot” check box for Samba? (I’ll provide a screenshot for details.)

Thanks!

Ok, after some reading I think this has something to do with the way

/srv/web/ipfire/cgi-bin/services.cgi

is run to parse the file list of the directories

/opt/pakfire/db/installed/meta-*
/etc/init.d/*

to get a list of services. Since there is both a meta-cups and a meta-cups-filters package, there will be two “cups” entries in the Status -> Services table.

Reproduced with

[root@ipfire]# for i in `find /opt/pakfire/db/installed/meta-* 2>/dev/null | cut -d"-" -f2`; do echo `find /etc/init.d/$i 2>/dev/null | cut -d"/" -f4` | grep -v '^$'; done
avahi
clamav
cups
cups
freeradius
nut
samba
squid
watchdog

Not quite beautiful, but also not a real problem. :slight_smile:

(Someone has to rename the package meta file “meta-cups-filters” to “meta-cupsfilters” and add the name “cupsfilters” to the blacklist below line 171 of services.cgi to remove the duplicate entry from the services list.)

EDIT: Blacklist must not be updated.

2 Likes

If you feel this is a bug (sorry, I don’t know cups/samba enough to be dangerous) you may want to enter it in bugzilla.

1 Like

Hi,

this is definitely a bug. Please report it at https://bugzilla.ipfire.org/ and we will have a look at it. :slight_smile:

Thanks in advance, and best regards,
Peter Müller

1 Like

Done :slight_smile: https://bugzilla.ipfire.org/show_bug.cgi?id=12539

2 Likes