diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2017-02-11 09:26:36 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-02-12 22:19:53 +0100 |
commit | 7bd9626a6e43b0670dfdaa70f0a8d5e1fbfc8b8a (patch) | |
tree | 131fdf413a08d5d046cd6bad99f68fbe4c4aa664 /community/6tunnel/add-runit.patch | |
parent | d4f77493398802ac3b72c19cc4735d30592151be (diff) | |
download | aports-7bd9626a6e43b0670dfdaa70f0a8d5e1fbfc8b8a.tar.bz2 aports-7bd9626a6e43b0670dfdaa70f0a8d5e1fbfc8b8a.tar.xz |
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
Diffstat (limited to 'community/6tunnel/add-runit.patch')
-rw-r--r-- | community/6tunnel/add-runit.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/community/6tunnel/add-runit.patch b/community/6tunnel/add-runit.patch new file mode 100644 index 0000000000..9c006a4766 --- /dev/null +++ b/community/6tunnel/add-runit.patch @@ -0,0 +1,26 @@ +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 ++ ++ |