aports/community/6tunnel/add-runit.patch
Stuart Cardall 7bd9626a6e testing/6tunnel: move to community, add runit example
include -u option in help for dropping privileges
adds runit example script for service supervision

Review notes:
  I split the patch to add-runit and fix-help, added comment about
  origin of the patches and discarded unrelated fixes of trailing
  spaces. ~ @jirutka
2017-02-12 22:19:53 +01:00

27 lines
686 B
Diff

From: Stuart Cardall <developer@it-offshore.co.uk>
Date: Fri, 10 Feb 2017 15:26:30 +0000
Subject: [PATCH] add contrib/runit.run
Adds example run script for service supervision with runit.
Alpine notes:
* This patch is ported from upstream commit:
https://github.com/wojtekka/6tunnel/commit/f800eb1fe5b54ad1022c1bebd2a41a650b86752d
new file mode 100755
index 0000000..d87789e
--- /dev/null
+++ b/contrib/runit.run
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# example run script for service supervision with runit
+# http://smarden.org/runit/
+#
+# redirect ipv4 port 80 to internal ipv6 port 80 & drop privileges
+#
+exec 2>&1
+exec 6tunnel -u nobody -d -p /run/80.pid 80 a:dead:beef:1 80
+
+