Re: postfix boot dependencies with systemd
Hello Russell and Craig, On 1/27/19, Russell Coker via luv-main wrote: > On Saturday, 26 January 2019 11:34:26 PM AEDT Craig Sanders via luv-main > wrote: >> On Sat, Jan 26, 2019 at 10:13:10PM +1100, Russell Coker wrote: >> > It appears that the boot of my laptop is delayed by postfix depending on >> > network-online.target. How can I change this? Postfix is only >> > listening >> > on 127.0.0.1 so there's no reason for it to wait until my laptop >> > connects >> > to the Wifi network before continuing the boot. >> is there a loopback only target you can make it depend on rather than >> network-manager? > > There doesn't appear to be. Google searches indicate not. > >> other than that, my only idea is to dump network manager and manually >> configure your network with /etc/interfaces. I've always found that's >> best, anyway - NM is OK-ish for the simplest of network configs but a >> complete PITA for anything even slightly complex. > > My laptop has a very simple network configuration, connect to whatever Wifi > or > Ethernet is available and route everything through it. It's also a very > annoying configuration to run in any other way due to the dozen or so Wifi > networks I connect to. Very interesting. This relates to why I would prefer less monolithic "solutions" than Systemd and NetworkManager. It is also what I want to find, but appears to not be available, yet, some simpler framework or daemon that will handle Wi-Fi connections, even just one routine one. If I knew enough about the ways to manage the connection manually, I would not need the tool, but not being sufficiently conversant with the detail of connecting, nor beyond smaller simpler programming, I cannot make the tool. I have found the underlying assumptions in NetworkManager a real pain and frustrating. I have found that it will proceed to make the first connection the default route, regardless of whether that is suitable, and unduly difficult to change. That made life difficult while on dial up, and wanting to use an ethernet cable to another PC, and consider a network printer. I was bringing up the modem and the connection manually, running the computer in local mode most of the time. I really dislike Lennart Poettering and his attitudes. Regards, Mark Trickett ___ luv-main mailing list luv-main@luv.asn.au https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main
Re: postfix boot dependencies with systemd
On Saturday, 26 January 2019 11:34:26 PM AEDT Craig Sanders via luv-main wrote: > On Sat, Jan 26, 2019 at 10:13:10PM +1100, Russell Coker wrote: > > It appears that the boot of my laptop is delayed by postfix depending on > > network-online.target. How can I change this? Postfix is only listening > > on 127.0.0.1 so there's no reason for it to wait until my laptop connects > > to the Wifi network before continuing the boot. > > > > I ran "systemctl edit postfix@-" and "systemctl edit postfix@" and put the > > below in which should make it not depend on network-online.target. But it > > doesn't change anything. Any ideas? > > is there a loopback only target you can make it depend on rather than > network-manager? There doesn't appear to be. Google searches indicate not. > other than that, my only idea is to dump network manager and manually > configure your network with /etc/interfaces. I've always found that's > best, anyway - NM is OK-ish for the simplest of network configs but a > complete PITA for anything even slightly complex. My laptop has a very simple network configuration, connect to whatever Wifi or Ethernet is available and route everything through it. It's also a very annoying configuration to run in any other way due to the dozen or so Wifi networks I connect to. -- My Main Blog http://etbe.coker.com.au/ My Documents Bloghttp://doc.coker.com.au/ ___ luv-main mailing list luv-main@luv.asn.au https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main
Re: postfix boot dependencies with systemd
On Sat, Jan 26, 2019 at 10:13:10PM +1100, Russell Coker wrote: > It appears that the boot of my laptop is delayed by postfix depending on > network-online.target. How can I change this? Postfix is only listening on > 127.0.0.1 so there's no reason for it to wait until my laptop connects to > the Wifi network before continuing the boot. > > I ran "systemctl edit postfix@-" and "systemctl edit postfix@" and put the > below in which should make it not depend on network-online.target. But it > doesn't change anything. Any ideas? is there a loopback only target you can make it depend on rather than network-manager? other than that, my only idea is to dump network manager and manually configure your network with /etc/interfaces. I've always found that's best, anyway - NM is OK-ish for the simplest of network configs but a complete PITA for anything even slightly complex. craig -- craig sanders BOFH excuse #44: bank holiday - system operating credits not recharged ___ luv-main mailing list luv-main@luv.asn.au https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main
postfix boot dependencies with systemd
It appears that the boot of my laptop is delayed by postfix depending on network-online.target. How can I change this? Postfix is only listening on 127.0.0.1 so there's no reason for it to wait until my laptop connects to the Wifi network before continuing the boot. I ran "systemctl edit postfix@-" and "systemctl edit postfix@" and put the below in which should make it not depend on network-online.target. But it doesn't change anything. Any ideas? [Unit] After=NetworkManager.service nss-lookup.target Wants=NetworkManager.service Here is the critical chain for booting: # systemd-analyze critical-chain The time after the unit is active or started is printed after the "@" character. The time the unit takes to start is printed after the "+" character. graphical.target @19.216s └─multi-user.target @19.216s └─postfix.service @19.212s +2ms └─postfix@-.service @18.759s +449ms └─network-online.target @18.758s └─NetworkManager-wait-online.service @1.649s +17.107s └─NetworkManager.service @1.463s +173ms └─dbus.service @1.438s └─basic.target @1.419s └─paths.target @1.419s └─acpid.path @1.419s └─sysinit.target @1.416s └─systemd-backlight@backlight:intel_backlight.service @2.3 └─system-systemd\x2dbacklight.slice @1.039s └─system.slice @416ms └─-.slice @416ms -- My Main Blog http://etbe.coker.com.au/ My Documents Bloghttp://doc.coker.com.au/ ___ luv-main mailing list luv-main@luv.asn.au https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main