From e6a34f2c9397f27051faf0df5131881983f9148b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 22 Oct 2014 06:21:44 +0200 Subject: added sample runit configs --- contrib/runit/sfive-hub/log/run | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 contrib/runit/sfive-hub/log/run (limited to 'contrib/runit/sfive-hub/log/run') diff --git a/contrib/runit/sfive-hub/log/run b/contrib/runit/sfive-hub/log/run new file mode 100755 index 0000000..8e2f4b8 --- /dev/null +++ b/contrib/runit/sfive-hub/log/run @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +LOG_D="/var/log/sfive/hub" +if [ ! -d "$LOG_D" ]; then + mkdir -p -m0750 "$LOG_D" +fi +chown sfive:sfive "$LOG_D" +exec chpst -u sfive:sfive svlogd -tt "$LOG_D" -- cgit v1.2.3