From cf8d16221382fd2f0c734fbbb96286c8b7403827 Mon Sep 17 00:00:00 2001 From: lepz0r Date: Sun, 27 Nov 2022 10:58:31 +0700 Subject: [PATCH] Added runit service --- init.d/runit/zapret/finish | 2 ++ init.d/runit/zapret/run | 3 +++ 2 files changed, 5 insertions(+) create mode 100755 init.d/runit/zapret/finish create mode 100755 init.d/runit/zapret/run diff --git a/init.d/runit/zapret/finish b/init.d/runit/zapret/finish new file mode 100755 index 0000000..2781ad3 --- /dev/null +++ b/init.d/runit/zapret/finish @@ -0,0 +1,2 @@ +#!/bin/sh +/opt/zapret/init.d/sysv/zapret stop diff --git a/init.d/runit/zapret/run b/init.d/runit/zapret/run new file mode 100755 index 0000000..8e887e4 --- /dev/null +++ b/init.d/runit/zapret/run @@ -0,0 +1,3 @@ +#!/bin/sh +/opt/zapret/init.d/sysv/zapret start +exec chpst -b zapret pause