[arch-general] systemd start a daemon after the Internet connection is established
Bill Sun
cap.sensitive at gmail.com
Sun Sep 8 12:37:54 EDT 2013
Hi,
I have a web proxy that can only initiate itself online, otherwise it
would exit with an error. To daemonize that proxy, I wrote the following
systemd service file:
[Unit]
Description=A Proxy Server
After=network.target
[Service]
Type=simple
ExecStart=/srv/proxy/aproxy/bin/main
[Install]
WantedBy=multi-user.target
When the server is connected to the Internet, this service file can
launch the proxy successfully, but it doesn't work on system startup,
supposedly due to the lack of an connection with Internet access. So I
need systemd to make sure the connect has been established before it
launch this daemon.
Regards.
More information about the arch-general
mailing list