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

Petter Reinholdtsen pere at hungry.com
Wed Oct 15 08:39:54 UTC 2014


[Petter Reinholdtsen]
> 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:

That approach did not work, because /run/systemd/system is not yet
created when the init-ltsp.d scripts are executed.  This on the other
hand do work:

  if grep -q systemd /sbin/init ; then
    BOOTSYSTEM=systemd
  else
    BOOTSYSTEM=sysvinit
  fi

  service_disable() {
    service="$1"
    if [ systemd = "$BOOTSYSTEM" ] \
        && [ -f /lib/systemd/system/${service}.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