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.
- To: debian-edu <debian-edu@lists.debian.org>
- Subject: 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.
- From: Wolfgang Schweer <wschweer@arcor.de>
- Date: Wed, 15 Oct 2014 00:44:18 +0200
- Message-id: <[🔎] 20141014224418.GA31248@localhost.localdomain>
- In-reply-to: <E1XdhT3-0002Vg-LY@moszumanska.debian.org>
- References: <20141013152325.9575.65550@moszumanska.debian.org> <E1XdhT3-0002Vg-LY@moszumanska.debian.org>
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: