From 9f3a0ca571bd1f15d8d668d37391d340b60dbbf2 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sun, 9 Nov 2014 15:34:03 -0600 Subject: [PATCH] Add runsv service and logging --- .gitignore | 2 ++ log/.gitignore | 4 ++++ service/status/log/main | 1 + service/status/log/run | 3 +++ service/status/run | 5 +++++ 5 files changed, 15 insertions(+) create mode 100644 log/.gitignore create mode 120000 service/status/log/main create mode 100755 service/status/log/run create mode 100755 service/status/run diff --git a/.gitignore b/.gitignore index e69de29..dc0a198 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +service/status/supervise +service/status/log/supervise diff --git a/log/.gitignore b/log/.gitignore new file mode 100644 index 0000000..5e7d273 --- /dev/null +++ b/log/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore diff --git a/service/status/log/main b/service/status/log/main new file mode 120000 index 0000000..d6ded11 --- /dev/null +++ b/service/status/log/main @@ -0,0 +1 @@ +../../../log \ No newline at end of file diff --git a/service/status/log/run b/service/status/log/run new file mode 100755 index 0000000..96c9967 --- /dev/null +++ b/service/status/log/run @@ -0,0 +1,3 @@ +#!/bin/sh -e + +exec svlogd -tt ./main diff --git a/service/status/run b/service/status/run new file mode 100755 index 0000000..d063d84 --- /dev/null +++ b/service/status/run @@ -0,0 +1,5 @@ +#!/bin/sh -e + +cd "$(readlink -f "${PWD}")/../.." +PATH="${PATH}:${PWD}/.rbenv/bin:${PWD}/.rbenv/shims" +exec chpst -u www:www bundle exec foreman start -- 2.42.0