Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=hpe.com (client-ip=148.163.143.35; helo=mx0b-002e3701.pphosted.com; envelope-from=prvs=0506b63299=bruno.cornec@hpe.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=hpe.com Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4BbZnv42qFzDqXW for ; Wed, 26 Aug 2020 02:53:47 +1000 (AEST) Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 07PGrhXn029259; Tue, 25 Aug 2020 16:53:43 GMT Received: from g9t5009.houston.hpe.com (g9t5009.houston.hpe.com [15.241.48.73]) by mx0b-002e3701.pphosted.com with ESMTP id 334u9bngwu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Aug 2020 16:53:43 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g9t5009.houston.hpe.com (Postfix) with ESMTP id 9731F63; Tue, 25 Aug 2020 16:52:59 +0000 (UTC) Received: from morley.fr.hpecorp.net (morley.fr.hpecorp.net [10.39.8.55]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 69CF447; Tue, 25 Aug 2020 16:52:59 +0000 (UTC) Received: by morley.fr.hpecorp.net (Postfix, from userid 2000) id 6FB41B48; Tue, 25 Aug 2020 18:52:58 +0200 (CEST) Date: Tue, 25 Aug 2020 18:52:58 +0200 From: Bruno Cornec To: Mike Jones Cc: OpenBMC Maillist Subject: Re: systemd clarification Message-ID: <20200825165258.GT20886@morley.fr.hpecorp.net> References: Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline In-Reply-To: X-Humor: Linux is to Windows what early music is to military music X-Operating-System: Linux morley.fr.hpecorp.net 5.3.7-server-4.mga7 X-Current-Uptime: 10:07:01 up 231 days, 14:26, 22 users, load average: 0, 17, 0,13, 0,12 X-HP-HOWTO-URL: http://www.HyPer-Linux.org/HP-HOWTO/current X-URL: http://eurolinux.fr.smktg.hpecorp.net/ X-eurolinux: ftp://eurolinux.fr.smktg.hpecorp.net/pub/linux X-mondorescue: http://www.mondorescue.org ftp://ftp.mondorescue.org User-Agent: Mutt/1.11.4 (2019-03-13) X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-08-25_08:2020-08-25, 2020-08-25 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 adultscore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 spamscore=0 phishscore=0 clxscore=1011 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008250125 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2020 16:53:56 -0000 Hello, /etc/systemd is used to override or add locally units which are not delivered as part of the std systemd delivery which is under /lib/systemd (or /usr/lib/systemd depending on Linux distribuions). It's an easy way to modify a std unit file and change say the options used to start the daemon e.g. So: Mike Jones said on Tue, Aug 25, 2020 at 10:20:54AM -0600: >The lib path is not a search path in the systemd documentation, and the etc path has links into the lib path. So I assume services in the lib path are only run if they are linked into the etc path. Is this correct? No. they are run if they are enabled (systemctl list-units to see that) >If there is a an After= that lists something found only in the lib path, I assume it will run because After is not strong enough to prevent start. But if it was Requires=, then I assume it cannot start unless it is linked into the etc path so that it is available. Is this correct? No. No link is necessary. Best regards, Bruno. -- HPE WW FLOSS Technology Strategist http://www.hpe.com/engage/opensource Open Source Profession, WW Linux Community Lead http://github.com/bcornec FLOSS projects: http://mondorescue.org http://project-builder.org Musique ancienne? http://www.musique-ancienne.org http://www.medieval.org