i have set up systemd to start a 'network.service' unit which automatically connects to my wlan.
The problem i have is that at this point the wlan0 interfaces is not loaded yet.
So i have to do 'systemctl start network.service' manualy after i login.
Any idea how to fix that?
I am using a usb-wlan-stick if that matters.
Last edited by LordMord (2012-11-10 20:13:05)
I'm pretty new to systemd, but are you sure network.service does exists?
Can't tell you it does not, but I followed this howto and everything worked fine (i'm using a wired connection)
network (DHCP ethernet connection) sudo systemctl enable firstname.lastname@example.org networkmanager (network replacement) sudo systemctl enable NetworkManager.service wicd (network replacement, lighter than networkmanager) sudo systemctl enable wicd.service
Yea i created the 'network.service' following these Instructions . And the command works fine after i log in and the interface is loaded. But if it check the status with 'systemctl status network.service' before manually starting it tells me that if failed cause it did not find the interface wlan0.
If there is a way to automatically run a command with sudo after login that would work as well.
Here is the error message:
[roman@ArchDesktop ~]$ sudo systemctl status network.service [sudo] password for roman: network.service - Network Connectivity Loaded: loaded (/etc/systemd/system/network.service; enabled) Active: failed (Result: exit-code) since Sun, 2012-11-11 07:46:53 CET; 1min 7s ago Process: 373 ExecStart=/sbin/ip link set dev wlan0 up (code=exited, status=1/FAILURE) CGroup: name=systemd:/system/network.service Nov 11 07:46:53 ArchDesktop ip: Cannot find device "wlan0"
Last edited by LordMord (2012-11-11 05:49:59)
Its a bug and is currently being addressed
https://bbs.archlinux.org/viewtopic.php?id=151662 has links to a proposed patch
Thanks skunktrader got it to work. Wouldn't it makes sense to change the Instructions as to contain these 2 Lines:
It's a wiki, you can make the change yourself.