[systemd-devel] openvpn: tap0 & br0 missing

Reindl Harald h.reindl at thelounge.net
Mon Nov 21 13:08:54 PST 2011



Am 21.11.2011 21:49, schrieb Miklos Vajna:
> On Mon, Nov 21, 2011 at 01:18:08PM -0500, "Michael D. Berger" <m.d.berger at ieee.org> wrote:
>> What might I put in the .service file to assure that
>> my script is run as late in the startup sequence as
>> possible? I'm thinking about a "sleep 1" at the
>> beginning of the script itself.
> 
> SysVStartPriority=99 in the Service section can do it. But it's a hack,
> the solution is to depend on the right targets (or just handle the lack
> of network, etc on start in the daemon in question).

this is really the smallest problem
afaik in F14 there was also no "magic script" for the bridge-configuration

[root at srv-rhsoft:~]$ cat /lib/systemd/system/openvpn.service
[Unit]
Description=OpenVPN
After=network.target
[Service]
Type=forking
PIDFile=/var/run/openvpn/openvpn.pid
ExecStartPre=-/etc/init.d/openvpn-bridge start
ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/openvpn.pid --cd /etc/openvpn/ --config openvpn.conf
ExecStopPost=-/etc/init.d/openvpn-bridge stop
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20111121/9b4bb3a6/attachment.pgp>


More information about the systemd-devel mailing list