From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RDklD-0007s9-K4 for garchives@archives.gentoo.org; Tue, 11 Oct 2011 22:25:20 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1CCE821C075; Tue, 11 Oct 2011 22:25:09 +0000 (UTC) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 2DA9B21C06E for ; Tue, 11 Oct 2011 22:23:50 +0000 (UTC) Received: by wyf19 with SMTP id 19so91221wyf.40 for ; Tue, 11 Oct 2011 15:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=BBHVeWADQXrGBDxy1pKu71ryZoVveVECUhnfJcIyenI=; b=cocxTiGrX3n4lsxWKrSVG6pfIwD8Roqi8Q0lg9S1/VnUWcFCbrNFvblKjLBf997SBK FfVL3EIeUkZKRDwoe/Q7VWKQzpVIiRYuDK18/Js9hYDv2+rQGrluAYdLE8JkfihPoflO PgG8ZFykRls1tjcuSjk7mxUPSQG0GRcQ2y2BY= 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 Received: by 10.216.159.133 with SMTP id s5mr1441639wek.64.1318371830250; Tue, 11 Oct 2011 15:23:50 -0700 (PDT) Received: by 10.216.234.130 with HTTP; Tue, 11 Oct 2011 15:23:49 -0700 (PDT) In-Reply-To: <4E94B61D.4020305@xunil.at> References: <4E4C2CC4.6080604@xunil.at> <1917430.4cT7ToFnvP@eve> <4E5289F9.7010301@xunil.at> <16028239.172g5cXQ49@eve> <4E529ECE.6060403@xunil.at> <4E529FF7.2050704@xunil.at> <4E52C56E.3090808@xunil.at> <4E94A695.3000600@xunil.at> <4E94B61D.4020305@xunil.at> Date: Tue, 11 Oct 2011 15:23:49 -0700 Message-ID: Subject: Re: [gentoo-user] systemd From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: lists@xunil.at Cc: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: eea818d67aafb283eaba3a5b1cb0c0c2 On Tue, Oct 11, 2011 at 2:33 PM, Stefan G. Weichinger wrot= e: > Am 11.10.2011 23:04, schrieb Canek Pel=C3=A1ez Vald=C3=A9s: > > [...] > >> systemctl status ssd-thingies.service >> >> If everything went OK, it should have a line like this: >> >> Process: 1234 ExecStart=3D/my/path/to/ssd-thingies (code=3Dexited, statu= s=3D0/SUCCESS) >> >> Regards. > > Thanks for the explanation! > > I tried it right now, unfortunately I get: > > # systemctl status ssd-thingies.service > ssd-thingies.service - SSD thingies > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Loaded: loaded (/etc/systemd/system/ssd= -thingies.service) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Active: failed since Tue, 11 Oct 2011 2= 3:28:05 +0200; 21s ago > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Process: 6696 ExecStart=3D/etc/local.d/stefan= .start (code=3Dexited, > status=3D203/EXEC) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0CGroup: name=3Dsystemd:/system/ssd-thin= gies.service > > Is it a permission-issue? AFAIK systemd runs w/ root? It runs as root, but it's already telling you the problem: > Process: 6696 ExecStart=3D/etc/local.d/stefan.start (code=3Dexited, statu= s=3D203/EXEC) Your script (I believe) does not have execution perms. All the commands for ExecStart (and ExecStop) need to be executable, so do a chmod +x /etc/local.d/stefan.start Also, if your scripts does not return 0 (or the last command it executes does not return 0), it will tell you with the status=3D flag. Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico