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 1E762158083 for ; Sun, 1 Sep 2024 18:43:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03CAEE2A2E; Sun, 1 Sep 2024 18:43:42 +0000 (UTC) Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (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 B59ADE29F2 for ; Sun, 1 Sep 2024 18:43:41 +0000 (UTC) Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-714287e4083so3150265b3a.2 for ; Sun, 01 Sep 2024 11:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725216220; x=1725821020; 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=ef4uCIBMqoIl4bH8bsDUX4FM7zxbgqOKHAkNoKIyTOU=; b=AdgpexK7Xvme6RCcAoduGARvfcLBlr26Tl5DnMsWw4zg2hZgNexJ5mbYLOcO5S3p40 sQulNA0j2X/SnDjJ181MfnWzkI++r1oXXD7kRIJPxhPWmFXDeePsC8XxBjbwUL/RMLKK WrzMcQIZzM1pLAa7ldrP71lsNOQWFwCeL6fjxVtEippoEOjV2D+fAPuiuXnduLAdVt+B 0xAGY30wuZQhR912HT6JoweHWv6OlF458YPAO2bkRInaqfAiIF5aOyEo/MXnsWtH9ZCa AOHuxgK/sZx4WqXZXBVi5soCPHFU1YFKglyeOKI6UIzTlG3LAA8wlfp9ENbv+DkoL51Q /S8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725216220; x=1725821020; 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=ef4uCIBMqoIl4bH8bsDUX4FM7zxbgqOKHAkNoKIyTOU=; b=ZUb0hdjhPpH0R6Ml4NhOd8fMIkSzPunEcDpCCKcx/f+b+/m0Bkxt3wRU4OrXyjhmqa UjmlM7hZbi3FsgRCGiTaygHAJ8TmRTOyZ8OwHFZhVFz6DCm/cKlEY4YkBiJ4ZjFMiuaE 8OI4xNQA91tH1/D9NnbYPcKT3aj+BRxf8ODlfjwBla3nY9uaXN+F4gXio3GgW/XKfGY6 6WZ54vhht4Cn2yKtsVQHeIbb12LEwVozh+HgbjcviC+TEkcdRWTW2ddS+7VlexjZRDrC Vbi+DoXQXSWwA7X4mATFJBCU5BcLG38Jtz0du1QmKX8SsxUdt8TEWALeNWW0XULh77N5 NLLA== X-Gm-Message-State: AOJu0YzHtno6EeVK5KIfkxJDuQJD6uw7WNXTpkYFd16XFgqcz9gPRRbR PU8qhz06sNcY+MUDSdVVUjNi6OqCpXs+RbqjN9gxOwHLJqQJpa3Og7WG+Q== X-Google-Smtp-Source: AGHT+IF0eYAuhoGivBFybYBdsAGnsweEwE1gBaBH8kvDj8CLQRdNhMW8gfll7aMk+MOdW09SfA7lcw== X-Received: by 2002:a05:6a20:9f09:b0:1c4:6be3:f571 with SMTP id adf61e73a8af0-1cecdfe0ba4mr6949509637.39.1725216220191; Sun, 01 Sep 2024 11:43:40 -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 98e67ed59e1d1-2d8446f3949sm9986961a91.48.2024.09.01.11.43.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Sep 2024 11:43:39 -0700 (PDT) Message-ID: Date: Sun, 1 Sep 2024 11:43:38 -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: 942157ae-4f41-443f-a03e-e8615b4689b1 X-Archives-Hash: 4b752f2281f15013e3b0b3b2275b9995 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. That's a handy command, thanks. According to the output: 10.097s storage-nas.mount 4.550s systemd-networkd-wait-online.service It's waiting for the automount. The wait-online completes, the UI immediately starts, and then I went to browse the catalog, and it takes about 6 seconds to start the services and then mount it. I just want to have the needed NFS services started during startup, instead of waiting for someone to browse the library/files. This is easy to do in openrc with the nfs-client service, but no such service unit exists with systemd as far as I can tell. Dan