[Pkg-ltsp-devel] Bug#765065: ltsp-client-core: fails to stop some unneeded services on thin clients anymore

Vagrant Cascadian vagrant at debian.org
Mon Oct 13 22:10:16 UTC 2014


On 2014-10-13, Wolfgang Schweer wrote:
> When testing Debian Edu based on jessie, we found that modemmanager and 
> cups-browsed were running on thin clients. 
...
> --- 50-rm-system-services.orig	2014-10-13 10:42:10.893092219 +0200
> +++ 50-rm-system-services	2014-10-13 10:32:11.977456101 +0200
> @@ -25,7 +25,7 @@
>  exim4                 # exim4 Mail Transport Agent
>  grub-common           # Record successful boot for GRUB
>  lightdm               # Light Display Manager
> -modemmanager          # Modem manager
> +ModemManager          # Modem manager
>  nbd-client            # Network Block Device client (we use nbd-disconnect)
>  plymouth-stop         # Hide the splash screen
>  rfkill-store          # Store software rfkill state
> @@ -51,6 +51,7 @@
>  bluetooth             # Bluetooth daemon
>  brltty                # Braille terminal driver
>  cups                  # CUPS Printing spooler and server
> +cups-browsed          # CUPS browse daemon
>  kerneloops            # Collects and submits kernel crash signatures
>  network-manager       # Network connection manager
>  ufw                   # Uncomplicated Firewall
> @@ -83,5 +84,5 @@
>  fi
>  
>  for service in $rm_services; do
> -    rm -f /etc/rc?.d/???"$service" "/etc/init.d/$service" "/etc/init/$service.conf"
> +    systemctl disable $service.service
>  done

Thanks for the patch!

This seems like three separate, though related issues:

* Adding cups-browsed to the list of removed services.

* Fixing the case for ModemManager so it removes the correct service
  (although simply adding another line might be good, in case older
  versions or other distros ship it without the CamelCase).

* Using systemctl to disable systemd related services.

How well does this last bit work if systemctl isn't installed? Would
simply removing the files (.service) that systemctl uses be sufficient?
Are there too many possible locations /etc/systemd/system/,
/lib/systemd/system/, /usr/lib/systemd/system, and subdirs of each of
those?

I'll try and pose some questions to the systemd maintainers about this
as well.

live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ltsp-devel/attachments/20141013/88ff0855/attachment.sig>


More information about the Pkg-ltsp-devel mailing list