So I am all powered by systemd now - and I am not all that happy at all. The network does simply not start. I use wlan0 and wpa_supplicant and for this systemd sux
Here is the eth bug
But it does not matter with wlan0 either. There is no problem to manually start the network with
Code: Select all
sudo systemctl start dhcpcd@wlan0Since this is my Wifes lap I am likely to be killed if the network does not come up so I simply loose systemd and start the good old network daemon in rc.conf.
Simply because it works! ... And systemd does not
I have tried to make my own systemd services:
/etc/systemd/system/network.service
Code: Select all
[[Unit]
Description=Wireless Static IP Connectivity
Wants=network.target
Before=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/conf.d/network
ExecStart=/sbin/ip link set dev ${interface} up
ExecStart=/usr/sbin/wpa_supplicant -B -i ${interface} -c /etc/wpa_supplicant.conf # Remove this for wired connections
ExecStart=/sbin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev ${interface}
ExecStart=/sbin/ip route add default via ${gateway}
ExecStop=/sbin/ip addr flush dev ${interface}
ExecStop=/sbin/ip link set dev ${interface} down
[Install]
WantedBy=multi-user.targetAnd as you can se it is made a reference to /etc/conf.d/network there so I had made that too:
Code: Select all
interface=wlan0
address=192.168.0.10
netmask=24
broadcast=192.168.0.255
gateway=192.168.0.1Enabling and starting the services ... and falling on my nose.
Frustrating indeed, but I have manual IP and networking up and running with scripts
Systemd has potential though and will probably work wonders in the standardisation of Linux (well with the exception of Ubuntu at this point - but their arguments do make sense to me now).
And doing a
Code: Select all
systemctl enable "whatever service you want" The big new "feature" that needs some attention is that when you do a new install with systemd it is going to invent some new names for the good old wlan0 and eth0 so your iwconfig could show something like wlp0s11 and enp0s13.
And this does matter when you want to connect to your wifi or eth
But again I am a simple magazine reader - apparently that is brilliant