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

Petter Reinholdtsen pere at hungry.com
Tue Oct 14 05:26:19 UTC 2014


[Vagrant Cascadian]
> 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 am currently testing a function like this in our
/usr/share/ltsp/init-ltsp.d/60-edu-client file, which might address
some of your questions:

service_disable() {
    service="$1"
    if [ -d  /run/systemd/system ] \
       && [ -f /lib/systemd/system/gdm3.service ] ; then
        systemctl disable ${service}.service
    else
        update-rc.d $service disable || true
    fi
}

-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-ltsp-devel mailing list