[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-edu-commits] debian-edu/ 01/01: Rewrite init-ltsp.d/60-edu-client to disable all services the same way, reduce duplicate code and work with sysv-rc based systems too.



On Mon, Oct 13, 2014 at 03:23:25PM +0000, Petter Reinholdtsen wrote:
> --- a/share/ltsp/init-ltsp.d/60-edu-client
> +++ b/share/ltsp/init-ltsp.d/60-edu-client
> @@ -1,32 +1,45 @@
>  #!/bin/sh
> +
> +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

I guess gdm3 should be replaced with ${service}?

Even if this replacement is made, update-rc.d seems to be taken in each 
case.

Wolfgang

Attachment: signature.asc
Description: Digital signature


Reply to: