arch linux network.target not firing correctly

May 20, 2013 2.4k views
I've got a couple of services that rely on a network connection starting with systemd. I've had them starting correctly on other servers by using After=network.target. I've also tried After=network-online.target but neither are working on here. I have a feeling both are firing before a network connection has started. Thus things are starting, not able to lock onto their port and are dying on boot. Any thoughts?
2 Answers
Try adding them in the very bottom of /etc/rc.local* so they're the last thing that is started which would mean they're started *after* networking is.

*systemd ignores /etc/rc.local - please see http://superuser.com/questions/278396/systemd-does-not-run-etc-rc-local
Hm. It's a solution but I'd much rather do it right. I'm more worried about the underlying problem of such an important part of systemd not doing what it should and the effects that might be having elsewhere.
Have another answer? Share your knowledge.