summaryrefslogtreecommitdiff
path: root/misc/init.d
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2024-10-08 17:07:12 +0100
committerdavidovski <david@davidovski.xyz>2024-10-08 17:07:12 +0100
commit6c1de1e807d39883c975933c4c35b91f1df88fd6 (patch)
treef602c3656afa1d2c2446975b1105aec44e8b3669 /misc/init.d
parent2b0b5063e1ae9babd432e9349fc4a8ca69340456 (diff)
add tunnel scripts and service
Diffstat (limited to 'misc/init.d')
-rwxr-xr-xmisc/init.d/tunnel13
1 files changed, 13 insertions, 0 deletions
diff --git a/misc/init.d/tunnel b/misc/init.d/tunnel
new file mode 100755
index 0000000..9cdd8c4
--- /dev/null
+++ b/misc/init.d/tunnel
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+
+: ${user:="tor"}
+
+name="tunnel"
+
+command="/home/david/tunnel.sh"
+command_background="true"
+pidfile="/run/tunnel.pid"
+
+depend() {
+ need sshd
+}