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 C0AC6138746 for ; Tue, 29 Jan 2013 19:33:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0AC28E0662; Tue, 29 Jan 2013 19:33:36 +0000 (UTC) Received: from postler.lichtfels.com (postler.lichtfels.com [78.46.92.195]) by pigeon.gentoo.org (Postfix) with ESMTP id 6F91DE060D for ; Tue, 29 Jan 2013 19:33:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by postler.lichtfels.com (Postfix) with ESMTP id C527316ED4 for ; Tue, 29 Jan 2013 20:33:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xunil.at; s=mailout; t=1359488026; bh=UgOr05h5xRms3mymtoGMOd36E2jnbCuOyDDLu9Pl6Hc=; h=Date:From:Reply-To:To:Subject:References:In-Reply-To; b=VHT8/SBq+GrUE2jTw5IAr2j76WFbot8KbVLRN2pqjnbP9Epjzx55rY9WnE8U/ztAB VEEtvGHMZ4TSIEF9Z5jIOSUrbrecDok9E/la7HLUGwI4honrOhwGwDg11JX2np/UJH m30OXMmtLYXRlObtnR0F5vSRrWly/dIWOwMhCphw= Received: from postler.lichtfels.com ([127.0.0.1]) by localhost (postler.lichtfels.com [127.0.0.1]) (amavisd-maia, port 10024) with LMTP id 07572-09 for ; Tue, 29 Jan 2013 20:33:35 +0100 (CET) Received: from hiro.oops.intern (unknown [IPv6:2001:15c0:65ff:86dc:d016:71f0:8135:1142]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by postler.lichtfels.com (Postfix) with ESMTPSA id BCCDB16ED0 for ; Tue, 29 Jan 2013 20:33:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xunil.at; s=mailout; t=1359488015; bh=UgOr05h5xRms3mymtoGMOd36E2jnbCuOyDDLu9Pl6Hc=; h=Date:From:Reply-To:To:Subject:References:In-Reply-To; b=3OBxzOiUfFK7HLQibmc7x8mwRMRDxW7xijlz6AoZdoXV1YTvJ2LzZe+WNBWMHTZfk QoDTPLgjiCJMU7dLFCPnzYTOIrDO/trgRlV0Y8cX8qdjfvuKOV0NyvPN5vaYqxaaH0 ns5gIMDBodbXKPW9PcN7K80VuYpYF1JGS2mpMUXs= Message-ID: <510823FF.8080007@xunil.at> Date: Tue, 29 Jan 2013 20:33:19 +0100 From: "Stefan G. Weichinger" Organization: oops! User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130114 Thunderbird/17.0.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] *draft* for setting up network bridge with systemd (for qemu/kvm) References: <5106CB02.9040709@xunil.at> <5106D0B4.2040004@xunil.at> <5106E8B0.2060909@xunil.at> <5106F25A.2040203@xunil.at> <5107F9A1.2010205@xunil.at> In-Reply-To: X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.2c X-Archives-Salt: aa3e5e97-ae54-4c20-9c22-fb9ecb33704e X-Archives-Hash: 6771ce54b6a8b1909db65dcfad8b0766 Am 29.01.2013 20:23, schrieb Canek Peláez Valdés: > I really believe the most important thing abount systemd unit files is > that they are small and simple. You can also check the exit status > from each command in the script, or even better, you can do a test > after all the commands are done to check the status of the bridge and > see if it was created correctly. > > None of this belongs in the unit service, IMO. Otherwise, you end > creating ssh keys and user groups in unit files, and none of this > belongs there. Clear separation between the services and the init > system. > > But of course, as I said to Stefan, if it works it works. As I mentioned it is a first version ... just to make things work. If all the services/daemons/stuff work with systemd then I am able to use it as default init-system here and I don't have switch back to openrc to do my work (for example when I need KVM-based virtualization on my workstation). I agree with your argument that unitfiles should be as small and simple as possible, on the other hand those commands just get pulled in from elsewhere: the complexity is just moved out of sight, right? I did quite some research to find more elegant solutions ... so far I wasn't successful. For now I am happy to get my itches scratched ... I am absolutely ready to learn and improve things. Sharing my first steps here maybe helps to motivate other gentoo-users to give systemd a try? Regards, Stefan