aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTJ Vanderpoel <tj@rubyists.com>2011-05-20 10:55:28 -0500
committerTJ Vanderpoel <tj@rubyists.com>2011-05-20 10:55:28 -0500
commitb3144769d8729d735efcf90b4f107f4b6dd3d989 (patch)
tree9816b48af0739371e526a99cb47520ddd8ede330
parent568dd96a62140b9268b70738b6a8bc5b29d2fd28 (diff)
downloadrunit-services-b3144769d8729d735efcf90b4f107f4b6dd3d989.zip
runit-services-b3144769d8729d735efcf90b4f107f4b6dd3d989.tar.gz
runit-services-b3144769d8729d735efcf90b4f107f4b6dd3d989.tar.bz2
moved back to rsvlog, with an optional conf
-rw-r--r--etc/sv/freeswitch/log/conf1
l---------[-rwxr-xr-x]etc/sv/freeswitch/log/run15
-rw-r--r--etc/sv/ntpd/log/conf1
l---------etc/sv/ntpd/log/run1
-rwxr-xr-xetc/sv/ntpd/run4
5 files changed, 8 insertions, 14 deletions
diff --git a/etc/sv/freeswitch/log/conf b/etc/sv/freeswitch/log/conf
new file mode 100644
index 0000000..fadc84e
--- /dev/null
+++ b/etc/sv/freeswitch/log/conf
@@ -0,0 +1 @@
+USERGROUP=freeswitch:daemon
diff --git a/etc/sv/freeswitch/log/run b/etc/sv/freeswitch/log/run
index c0d2c7d..914853d 100755..120000
--- a/etc/sv/freeswitch/log/run
+++ b/etc/sv/freeswitch/log/run
@@ -1,14 +1 @@
-#!/bin/sh
-if [ -w /var/log ];then
- service=$(basename $(dirname $(pwd)))
- [ -d "/var/log/$service" ] || mkdir -p "/var/log/$service"
- [ -L ./main ] || [ -d ./main ] || ln -s "/var/log/$service" ./main
- [ -L ./current ] || ln -s main/current
- usergroup=$(stat -c "%U:%G" "/var/log/$service")
- if [ "$usergroup" != "daemon:adm" ];then
- chown -R freeswitch:adm "/var/log/$service"
- fi
- exec chpst -u freeswitch:adm svlogd -t ./main
-else
- exec svlogd -t ./
-fi
+/usr/bin/rsvlog \ No newline at end of file
diff --git a/etc/sv/ntpd/log/conf b/etc/sv/ntpd/log/conf
new file mode 100644
index 0000000..aeea6a0
--- /dev/null
+++ b/etc/sv/ntpd/log/conf
@@ -0,0 +1 @@
+USERGROUP=ntp:daemon
diff --git a/etc/sv/ntpd/log/run b/etc/sv/ntpd/log/run
new file mode 120000
index 0000000..914853d
--- /dev/null
+++ b/etc/sv/ntpd/log/run
@@ -0,0 +1 @@
+/usr/bin/rsvlog \ No newline at end of file
diff --git a/etc/sv/ntpd/run b/etc/sv/ntpd/run
new file mode 100755
index 0000000..6aac1fb
--- /dev/null
+++ b/etc/sv/ntpd/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+source /etc/conf.d/ntp-client.conf
+/usr/bin/ntpd -q $NTP_CLIENT_OPTION
+exec /usr/bin/ntpd $NTPD_ARGS -u ntp -n 2>&1