From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5BC0B1381F3 for ; Sun, 26 May 2013 09:49:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 472A1E0B26; Sun, 26 May 2013 09:49:50 +0000 (UTC) Received: from mail-vb0-f51.google.com (mail-vb0-f51.google.com [209.85.212.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 41D7CE0B17 for ; Sun, 26 May 2013 09:49:49 +0000 (UTC) Received: by mail-vb0-f51.google.com with SMTP id x16so4011539vbf.38 for ; Sun, 26 May 2013 02:49:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Wb9pikMTro09siEGrZYJhVhGnXN81d2m4NOHKndQJC4=; b=j+q9fcd2U/JH3WrgZZcTY8rwCxC1m1y+qa6mzXL/mmzNvkNHIQNIN9DPkEcr+fvq2b hE62xMxqG/4UDM9K3RRchS4l7hbU9gyFdF5MyMifHcMP8EAGAhyhGowKtCd+wYemYXVP 30zcQw1QJZUo5Eog0gDHJNNiMPN7pejMvuyQ+NAqUiBSYDZYRIAv6TW9bt1CyDWyr0Eh LixXsEkAPpZ8I3n3Dh5FJuFPjBhOiiCEGLvFhKFWVT8NFRsIL0aizlCbszocs7MkEKOJ GCAqrKbFxYkavfE1MAjBtMg1ESJx9FHtNQb9Dwb1QVheMbdU3SPzg2ziOnGfW+FHIRm5 krJA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.52.164.236 with SMTP id yt12mr10840923vdb.128.1369561788455; Sun, 26 May 2013 02:49:48 -0700 (PDT) Sender: freemanrich@gmail.com Received: by 10.52.168.233 with HTTP; Sun, 26 May 2013 02:49:48 -0700 (PDT) In-Reply-To: References: <20130526093755.42b62259@gentoo.org> Date: Sun, 26 May 2013 05:49:48 -0400 X-Google-Sender-Auth: a0Dh4N1p90LodXY7xhBFc-GXOho Message-ID: Subject: Re: [gentoo-dev] Reusing systemd unit file format / forking systemd (was: Going against co-maintainer's wishes (ref. bug 412697)) From: Rich Freeman To: gentoo-dev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: ff953fd3-9d0c-434e-a6b7-dfba20169999 X-Archives-Hash: 720213cf1b6890dcce248c838329cd7b On Sun, May 26, 2013 at 4:32 AM, Ben de Groot wrote: > On 26 May 2013 15:37, Micha=C5=82 G=C3=B3rny wrote: >> >> Considering the design of OpenRC itself, it wouldn't be *that hard*. >> Actually, a method similar to one used in oldnet would simply work. >> That is, symlinking init.d files to a common 'systemd-wrapper' >> executable which would parse the unit files. > > I think this idea actually makes sense. Re-using upstream work seems a > logical idea, and could ease maintenance. Of course the issue is > whether the OpenRC devs see any benefit in this. Init.d scripts are just shell scripts. All somebody needs to do is write a shell script that parses a unit file and does what it says, and exports an openrc-oriented init.d environment. That can be packaged separately, or whatever, and maybe an eclass could make it easy to install (point it at the upstream/filesdir unit and tell it what to call the init.d script, and you get the appropriate symlink/script). The OpenRC devs don't have to endorse anything - sure it would make sense to bundle it, but it could just as easily be pulled in as a dep or used manually by a user. The script could ignore any unit features that aren't implemented. You can ignore settings like auto-restart/inetd and just use the settings that get the daemon started. Rich