From c4fb47602ffc9b7f039876f7d8410fad6a10cf9b Mon Sep 17 00:00:00 2001 From: yuandi42 Date: Thu, 17 Nov 2022 02:25:36 +0800 Subject: [PATCH] add a runit script for v2raya. --- install/universal/v2raya.run | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 install/universal/v2raya.run diff --git a/install/universal/v2raya.run b/install/universal/v2raya.run new file mode 100644 index 00000000..69a19a7a --- /dev/null +++ b/install/universal/v2raya.run @@ -0,0 +1,22 @@ +#!/bin/sh + +# This is the runit script for v2raya. Check out runit, a UNIX init scheme with +# service supervision here: http://smarden.org/runit/ + +# Usage: move this script to the service directory as run, and make it +# executable. Then you can run this service under runit service supervision. +# For exmaple: + +# install -Dm755 v2raya.run /etc/sv/v2raya/run +# ln -s /etc/sv/v2raya /var/service/ + +# Note that the actual service directory and supervision directory may differ +# from disto to disto. + +# For any problem, connect yuandi42 . + +exec 2>&1 + +export V2RAYA_LOG_FILE="/var/log/v2raya/v2raya.log" + +exec /usr/bin/v2raya --log-disable-timestamp