Page 1 of 1

Systemctl Service Not Wait For Network Before Start Running

Posted: Tue May 09, 2017 8:35 am
by rasp14
Hi All,

I need help, I have a service currently configured and running. Here is how my code looks like

Code: Select all

[Unit]
Description=Service1
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
WorkingDirectory=/../../
ExecStart=/../../..
User=pi
Restart=always

[Install]
WantedBy=multi-user.target
However, this service start running before the network is ready. I tried enable "systemd-networkd-wait-online.service" based on what i get from google search. However, the problem still persists. How to solve this? I would like to avoid using the raspi-config option to wait for network as my Pi could have other use.

Thanks in advance.