From unknown Fri Mar 29 01:17:46 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#377: [X2Go-Dev] Bug#377: init scripts Reply-To: Mike Gabriel , 377@bugs.x2go.org Resent-From: Mike Gabriel Resent-To: x2go-dev@lists.berlios.de Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Sat, 21 Dec 2013 21:10:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 377 X-X2Go-PR-Package: x2gobroker X-X2Go-PR-Keywords: Received: via spool by 377-submit@bugs.x2go.org id=B377.138766017321551 (code B ref 377); Sat, 21 Dec 2013 21:10:02 +0000 Received: (at 377) by bugs.x2go.org; 21 Dec 2013 21:09:33 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199]) by ymir (Postfix) with ESMTPS id 4DB645DB13 for <377@bugs.x2go.org>; Sat, 21 Dec 2013 22:09:33 +0100 (CET) Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98]) by freya.das-netzwerkteam.de (Postfix) with ESMTPS id DC0FDC8; Sat, 21 Dec 2013 22:09:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id B9B0C3C062; Sat, 21 Dec 2013 22:09:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de Received: from grimnir.das-netzwerkteam.de ([127.0.0.1]) by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LBuPQZenXTLH; Sat, 21 Dec 2013 22:09:32 +0100 (CET) Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTPSA id 961023C038; Sat, 21 Dec 2013 22:09:32 +0100 (CET) Received: from p4FE5F50D.dip0.t-ipconnect.de (p4FE5F50D.dip0.t-ipconnect.de [79.229.245.13]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP; Sat, 21 Dec 2013 21:09:32 +0000 Date: Sat, 21 Dec 2013 21:09:32 +0000 Message-ID: <20131221210932.Horde.Diy4XlJi0Ykgyi95_Fbr8w1@mail.das-netzwerkteam.de> From: Mike Gabriel To: Jan Engelhardt , 377@bugs.x2go.org References: In-Reply-To: User-Agent: Internet Messaging Program (IMP) H5 (6.1.4) Accept-Language: en,de Organization: DAS-NETZWERKTEAM X-Originating-IP: 79.229.245.13 X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 Iceweasel/23.0 Content-Type: multipart/signed; boundary="=_MCq0pUhvGYC-sL05NQYpGA1"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 This message is in MIME format and has been PGP signed. --=_MCq0pUhvGYC-sL05NQYpGA1 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Control: close -1 Hi Jan, On Di 17 Dez 2013 19:10:20 CET, Jan Engelhardt wrote: > I seem to remember that start-stop-daemon might have been part of LSB, > but then again, maybe not? (In the current openSUSE release with > systemd, start-stop-daemon is part of the dpkg package.) > > So the following are the init scripts currently running here. They lack > in quality, are dirt hacks, and only do the one thing they were tested > for. There is a lack of quoting all over the place. I have included two init scripts [1, 2] in X2Go Session Broker now that work on RHEL derived distros. The script use the daemon function from /etc/init.d/functions. Because of the limitation of the daemon function not being able to fork a process to background, I had to implement the "--daemonize" command line option in x2gobroker [3] and x2gobroker-authservice [4]. Now, both Python executables can fork themselves to background. Also, I split up x2gobroker-agent from x2gobroker (and also sub packaged x2gobroker-daemon, x2gobroker-wsgi and python-x2gobroker). I recommend doing the same on OpenSuSE. Find my x2gobroker.spec shipped in upstream x2gobroker.git [5]. Thanks, Mike [1] http://code.x2go.org/gitweb?p=x2gobroker.git;a=blob;f=rpm/x2gobroker.init [2] http://code.x2go.org/gitweb?p=x2gobroker.git;a=blob;f=rpm/x2gobroker-authservice.init [3] http://code.x2go.org/gitweb?p=x2gobroker.git;a=blob;f=man/man1/x2gobroker.1#l75 [4] http://code.x2go.org/gitweb?p=x2gobroker.git;a=blob;f=man/man8/x2gobroker-authservice.8#l41 [5] http://code.x2go.org/gitweb?p=x2gobroker.git;a=blob;f=x2gobroker.spec -- DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148 GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb --=_MCq0pUhvGYC-sL05NQYpGA1 Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iQIcBAABAgAGBQJStgOMAAoJEJr0azAldxsxwwMP/3mpCpuiTFXO3zna9pp7XMvo Q7m0m+cNX9wShZkADRMzt0P32gdPEW85hGrYnKG8ZE6dn/sTdWM4mhooqGRMSj6v I546dz8Erg3+kzy35lR2SExGBtxgMpoY7Q4VksqPX1zbRRRvxgBdV1AWhhoufV7C zD0zleOyxYVay0NVhufj1jj5Kl8khHiODUmIRACcKwGO5/rSCMPMmd1LdSoiUyjY Zw4oF7hrY2UIeT/dSOCmN45YU0FrRILlJeJp24RQV37KW7hVFvqiW5YKKDzbpusB xMSzeF4UXNqTJk4yc6iq0NYxbgqCUkG0FsBBYguMQ+CdQfkd4NIcnFbL+tYJY7qc z4o2bbRnyIo06/4YwTbwWw2LlPwCBQOFEIY1VupM79MlX6zSklOorD4iq8VcOqfy AQM/XdfAXPFeLNbqeA+s5azPBXC0+q2eEVgU63qIecphD59JEg1CXf6KZAPr998d WDNvP7lVLKxj9Lia/Dled5nmmgAdnXJqsQjluytQDDfJJ39zyXXaXF/R87LXCE2e Bkfs1r6DmsSycL85vJYsN+OTI3sYNsLeZcaRaQ15S36jnXFvas8jwf5jp+sUgSYy gqnYk5ohyvExzJC3N9B3FMZHGqWpL7/VzAj8st3oN1V1DpxhSTMG0LzqmQ1++k8u vBYKG7ARbh019Pkf99x1 =QSlm -----END PGP SIGNATURE----- --=_MCq0pUhvGYC-sL05NQYpGA1--