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.

Reply via email to