summaryrefslogtreecommitdiff
path: root/rhnop-server/debian/rhnop-server.runit.log
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2011-04-02 16:03:14 (GMT)
committerChristian Pointner <equinox@helsinki.at>2011-04-02 16:03:14 (GMT)
commit96889f1baf748b33f65398c79c03b439eaa0f3ef (patch)
tree7a6941dc54ca23997f4b3504fcd3882ccd2a8a9e /rhnop-server/debian/rhnop-server.runit.log
parent5524ae404ffb897ca60162819502e4a9bd7d9599 (diff)
fixed runit script
added log service to runit switched to microseconds for timestamps
Diffstat (limited to 'rhnop-server/debian/rhnop-server.runit.log')
-rw-r--r--rhnop-server/debian/rhnop-server.runit.log9
1 files changed, 9 insertions, 0 deletions
diff --git a/rhnop-server/debian/rhnop-server.runit.log b/rhnop-server/debian/rhnop-server.runit.log
new file mode 100644
index 0000000..a8766ea
--- /dev/null
+++ b/rhnop-server/debian/rhnop-server.runit.log
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+LOG_D="/var/log/nopsyncd/"
+if [ ! -d "$LOG_D" ]; then
+ mkdir -p -m0750 "$LOG_D"
+fi
+chown root:adm "$LOG_D"
+exec chpst -u root:adm svlogd -tt "$LOG_D"