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 67265158041 for ; Sun, 7 Apr 2024 16:01:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D87B2BC025; Sun, 7 Apr 2024 16:01:53 +0000 (UTC) Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) (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 44E792BC016 for ; Sun, 7 Apr 2024 16:01:53 +0000 (UTC) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-6ecf3f001c5so2983287b3a.1 for ; Sun, 07 Apr 2024 09:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712505712; x=1713110512; 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=ny4AplulmTNjNuUkOsJY6Anwkn4VA12GbaXbl0lOBmc=; b=ShcA6HEECPwEROAIl8P+WjqYihIgNnRLYjfY9m+f/I7RWAm/dRBqgYJ6OiXdXYbcnv ljw/1qWd4F9wi5MCuIYI06q+wALlzkF2npPZ98xAXr860dINEaSY7p4Kb4nnWm2C5jj2 5lkAbfT+zQ19u5LgchGlhyLMbQN46OgLoUeO1EldmzpiyxNnr/2jKtEsrIz7ZQYHjmn8 7fct/vrjqQETt7epu+nhkPKBH4wNbTYWNStTytDZ3hk+JVTj+SY4rEuQ0ptQq2CO1jIa mNQ/1qhZB4ENudAv0JYO8ZEYIgsHhUbA0IdMxbv8Sy7cWiY3LkAgaXui0VZVDqZljnkA hRJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712505712; x=1713110512; 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=ny4AplulmTNjNuUkOsJY6Anwkn4VA12GbaXbl0lOBmc=; b=S8CeF6FfG7CiMCWmQ4nVQt2TS3F+w1Vw03cR8sgTt5b5Ffs13a15sus6rpXbD5N2HZ pDYChsK49FeCufsYEAKnQjRNdKWN4xSvE1Mho/l/U1fERYp9vi3mN0ZlXsXyFbO9djN9 I0SFcNZLCmSCYoQ4COAchKb8wbSNDJzixKo0NatkNwwxg++LxdG8R7kay33Mw8EaRToQ g66OcCEQFUO1SAMNaN8hkS65wACs7pJLBOquN+y/HHz/6P4nXY4U+xkto7epz1RoKeYn d/V0dzXHSUG0uFU7bu7ik0THup/YivmXanlg79O4MofzjUI43GBgEwcLK1+EPUmto0eY yvZg== X-Gm-Message-State: AOJu0YyTUYhutGaLsq8O88JoHEGgHRGEs3JqMQUbi5ktGWT8LxguMGw8 lL+kPwlAKtU8gT2Jsmg02vRrWbO9HzOoIrTskQWIdmyKw+BlD4I984kRhKD3 X-Google-Smtp-Source: AGHT+IHlPYsXzrDIdgIPr9/lkwJn2FFyy2SLPf9Q2QEBk14yxR3mLMMgF7zG0fMaaeVfyCGja9JOAg== X-Received: by 2002:a05:6a20:9749:b0:1a7:4aca:d22a with SMTP id hs9-20020a056a20974900b001a74acad22amr3149702pzc.21.1712505711741; Sun, 07 Apr 2024 09:01:51 -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 f21-20020a63dc55000000b005ce472f2d0fsm4750408pgj.66.2024.04.07.09.01.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Apr 2024 09:01:51 -0700 (PDT) Message-ID: Date: Sun, 7 Apr 2024 09:01:50 -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 unit executing but not persistent later in boot To: gentoo-user@lists.gentoo.org References: <395ad795-24c9-4f78-b0f9-75119e859ddf@gmail.com> Content-Language: en-US From: Daniel Frey In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Archives-Salt: afab6e14-6b37-4cf5-a1d2-0702e3d9af9c X-Archives-Hash: dce1a5fcfdddfb650c479d2beb224885 On 4/6/24 18:38, Andrew Udvare wrote: > On Sat, 6 Apr 2024 at 21:32, Daniel Frey wrote: >> What's even stranger is if I manually start it and restart lircd it works! > > Have you tried adding Before=lircd.service in the [Unit] section? > I did, it made no difference. From what I can tell it is running before lircd. I have disabled lircd. Ran daemon-reload and rebooted. For some reason, systemctl is saying it has run and exited successfully according to the timestamps: # systemctl status ir-key-map ○ ir-key-map.service - Add custom keymap to iMon remote Loaded: loaded (/etc/systemd/system/ir-key-map.service; enabled; preset: disabled) Active: inactive (dead) since Sun 2024-04-07 08:56:18 PDT; 1min 36s ago Duration: 48ms Process: 295 ExecStart=/usr/bin/ir-keytable -c -p rc-6 -w /etc/rc_keymaps/imon_mce.toml (code=exited, status=0/SUCCESS) Main PID: 295 (code=exited, status=0/SUCCESS) CPU: 19ms Apr 07 08:56:18 htpclivingrm systemd[1]: Started Add custom keymap to iMon remote. Apr 07 08:56:18 htpclivingrm ir-keytable[295]: Read imon_mce table Apr 07 08:56:18 htpclivingrm ir-keytable[295]: Old keytable cleared Apr 07 08:56:18 htpclivingrm ir-keytable[295]: Wrote 76 keycode(s) to driver Apr 07 08:56:18 htpclivingrm ir-keytable[295]: Protocols changed to rc-6 Apr 07 08:56:18 htpclivingrm systemd[1]: ir-key-map.service: Deactivated successfully. But, it doesn't actually change the protocol. It says it has "ir-keytable[295]: Protocols changed to rc-6" but when you check manually as root it really hasn't: # ir-keytable Found /sys/class/rc/rc0/ with: Name: iMON Remote (15c2:0038) Driver: imon Default keymap: rc-imon-pad Input device: /dev/input/event8 LIRC device: /dev/lirc0 Supported kernel protocols: rc-6 imon Enabled kernel protocols: imon bus: 3, vendor/product: 15c2:0038, version: 0x0001 Repeat delay = 500 ms, repeat period = 125 ms ...and I have no idea why. Until this works, lircd will not work. If you run it manually, it will update it. It shows in the log and more importantly, if you check with ir-keytable you can see it was successful. It's bizarre. I even tried adding User= and Group= in the [Service] context and it made no difference. Dan