[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


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to