Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
launchd: support vde_switch >= 2014-01-15
Browse files Browse the repository at this point in the history
Workaround for virtualsquare/vde-2 issue 30

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Aug 25, 2021
1 parent a5fdfe1 commit 803308b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
16 changes: 6 additions & 10 deletions launchd/io.github.virtualsquare.vde-2.vde_switch.bridged.en0.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,14 @@
<key>Label</key>
<string>io.github.virtualsquare.vde-2.vde_switch.bridged.en0.plist</string>
<key>Program</key>
<string>/usr/local/bin/vde_switch</string>
<string>/bin/sh</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/vde_switch</string>
<string>--sock</string>
<string>/var/run/vde.bridged.en0.ctl</string>
<string>--pidfile</string>
<string>/var/run/vde.bridged.en0.pid</string>
<string>--group</string>
<string>staff</string>
<string>--dirmode</string>
<string>0770</string>
<!-- vde_switch requires "daemon" flag for non-tty mode since 2014: https://github.com/virtualsquare/vde-2/issues/30 -->
<!-- we use `tail -f /dev/null` to keep the launchd job active -->
<string>/bin/sh</string>
<string>-euc</string>
<string>/usr/local/bin/vde_switch --daemon --sock=/var/run/vde.bridged.en0.ctl --pidfile=/var/run/vde.bridged.en0.pid --group=staff --dirmode=0770 &amp;&amp; trap 'kill $(cat /var/run/vde.pid)' EXIT ; tail -f /dev/null</string>
</array>
<key>StandardErrorPath</key>
<string>/var/run/vde.bridged.en0.stderr</string>
Expand Down
16 changes: 6 additions & 10 deletions launchd/io.github.virtualsquare.vde-2.vde_switch.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,14 @@
<key>Label</key>
<string>io.github.virtualsquare.vde-2.vde_switch.plist</string>
<key>Program</key>
<string>/usr/local/bin/vde_switch</string>
<string>/bin/sh</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/vde_switch</string>
<string>--sock</string>
<string>/var/run/vde.ctl</string>
<string>--pidfile</string>
<string>/var/run/vde.pid</string>
<string>--group</string>
<string>staff</string>
<string>--dirmode</string>
<string>0770</string>
<!-- vde_switch requires "daemon" flag for non-tty mode since 2014: https://github.com/virtualsquare/vde-2/issues/30 -->
<!-- we use `tail -f /dev/null` to keep the launchd job active -->
<string>/bin/sh</string>
<string>-euc</string>
<string>/usr/local/bin/vde_switch --daemon --sock=/var/run/vde.ctl --pidfile=/var/run/vde.pid --group=staff --dirmode=0770 &amp;&amp; trap 'kill $(cat /var/run/vde.pid)' EXIT ; tail -f /dev/null</string>
</array>
<key>StandardErrorPath</key>
<string>/var/run/vde.stderr</string>
Expand Down

0 comments on commit 803308b

Please sign in to comment.