systemd start a daemon after the Internet connection is established

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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.


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux