From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4431E158083 for ; Sun, 1 Sep 2024 18:57:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 265D1E2A3C; Sun, 1 Sep 2024 18:57:06 +0000 (UTC) Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C7AA8E29FF for ; Sun, 1 Sep 2024 18:57:05 +0000 (UTC) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-2021537a8e6so29201765ad.2 for ; Sun, 01 Sep 2024 11:57:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725217024; x=1725821824; darn=lists.gentoo.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=iKEQk4uO1ZD34M1aueyJ1hG2Dz7ySj0rmZrz8Xztr7w=; b=kulnwXwffvH9FmQK1X51bLXumMouQUI4b569OY2qvRed7mo6nGCILD+p4GeioZNIDL uRvyxEI6PkVF0gCb3jLSjfgxAOYF623KV3HdkvzEYEbhWQhCisB0yPR8L/KPjEpoguPO ZQ52JWPRlTxUYpQsQKpopy8mFQPPSNEimNWWH59mNjfDDRxluT+rMeZE+iILjwuL+bUZ WQmgNA2COniEGOVeH0VMDyTxD+hwaENHIVbTEIYsQJtAgiNWeZWoefncNlENyQ0RKHaz Kyt7Pzf86bry666vGM+9/X97yKJ2SOyewqKN+xBur9tHcb1EAuKGD1G0QYgFK6GcUrhW nx3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725217024; x=1725821824; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iKEQk4uO1ZD34M1aueyJ1hG2Dz7ySj0rmZrz8Xztr7w=; b=e9rvzcKbppOLOuQDw4ZUI8POuRA2Masr78ClLB08vamEUXnnc006NsrBTzhv9v0mPw rXJbbgV1IuPocJZvPZakiT+Q4qWkRR4FJ+NKThEY/MBWrT39wQCys5TiCO0zbbUYvm7a jsKEiCgQlZlLsTuparsF4o0UZKKay084NNLyDCGI1Vm26te24SJ/Txh27pdO4nW1eQgu jOo/IJpKsXzP+EqnkGMo0JyhEuLHYY4b6S/ZYA0j375ieto0UwWbLZP4fCIWjoGLqPW0 99XEQPAbvuY1FQkEXAYa1iqGvFrqGmvzko61jxbeJJ4KDKhChtSp4wX1GGLzI1phOKbT /sjA== X-Gm-Message-State: AOJu0YxAdQKRdEjJ1xBpq0M/RC4teGYJjDtcYvZ+OyJVIMoSQLBI6oRE /WwAmiQYxKH5vCPtdyjudrW15aQ8Z2Sm0X0o/KqilIi5H5GKAtP81r9NJw== X-Google-Smtp-Source: AGHT+IF8KU5kHvN2XaM9OZ4YUZ7eqxucZYkIvT492Di9KfQ4/HFw8nECRmqDdMCn0+Zeh6m7PupqzQ== X-Received: by 2002:a17:902:ea10:b0:205:6736:c5dd with SMTP id d9443c01a7336-20567370de5mr29173225ad.45.1725217023716; Sun, 01 Sep 2024 11:57:03 -0700 (PDT) Received: from [192.168.247.5] (d206-116-145-237.bchsia.telus.net. [206.116.145.237]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-205501addfesm22280285ad.80.2024.09.01.11.57.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Sep 2024 11:57:03 -0700 (PDT) Message-ID: <4c5d675d-b03e-41b1-8803-d19d5f6e5de8@gmail.com> Date: Sun, 1 Sep 2024 11:57:02 -0700 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 X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [gentoo-user] systemd - how to pre start nfs client services To: gentoo-user@lists.gentoo.org References: <95d502c8-ea41-47a6-ac7d-8b0368722a05@gmail.com> <22409681.EfDdHjke4D@rogueboard> Content-Language: en-US From: Daniel Frey In-Reply-To: <22409681.EfDdHjke4D@rogueboard> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 2fc0a4a9-5b62-4e9e-a71b-438e27e297c8 X-Archives-Hash: bad464449418973f013626e194039075 On 8/31/24 10:28, Michael wrote: > On Saturday, 31 August 2024 15:32:38 BST Daniel Frey wrote: >> I have a few frontends on TVs and use automount on some NFS sources. >> >> However, I can't seem find a way to start the nfs client services on >> startup. Wiki for NFS and other documentation says that systemd does >> this automatically (and it does) but I'm trying to eliminate a delay. >> >> The frontend start up and when you go to the screen that scans the >> folder, it takes 5-10 seconds for systemd to start these services and >> mount the NFS locations. >> >> On openrc this is simple and it takes less than a second at that screen. >> >> It is not waiting for a network, as on startup the interface connects to >> a database and this part is working fine (it would be blank if it >> started with no network.) >> >> Dan > > Does 'systemd-analyze blame' show which service component causes the delay(s)? > If the same service dependency occurs on both systems then it ought to take > the same time to automount an exported directory. This points to some systemd > specific service dependency/hierarchy causing the delay - as long as all > other configuration variables remain the same. I just had a thought, and I don't know why I didn't think of it before. I just looked at /etc/init.d/nfsclient and enabled the related services in systemd. Rebooted, now it works as expected. Dan