summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/ulogd/files/ulogd-1.01')
-rw-r--r--app-admin/ulogd/files/ulogd-1.0148
1 files changed, 48 insertions, 0 deletions
diff --git a/app-admin/ulogd/files/ulogd-1.01 b/app-admin/ulogd/files/ulogd-1.01
new file mode 100644
index 000000000000..3360a75fa3ee
--- /dev/null
+++ b/app-admin/ulogd/files/ulogd-1.01
@@ -0,0 +1,48 @@
+#!/sbin/runscript
+#
+# chkconfig: - 91 35
+# description: Starts and stops the ulogd daemon
+#
+# pidfile: /var/lock/samba/ulogd.pid
+# config: /usr/local/etc/ulogd.conf
+
+
+opts="${opts} reload"
+
+depend() {
+ need net
+ use mysql
+}
+
+initService() {
+# Avoid using root's TMPDIR
+unset TMPDIR
+
+# Check that ulogd.conf exists.
+[ -f /etc/ulogd.conf ] || exit 0
+
+RETVAL=0
+}
+
+start() {
+ initService
+ ebegin "Starting ulogd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/ulogd -- -d >/dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ initService
+ ebegin "Stopping ulogd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/ulogd >/dev/null 2>&1
+ eend $?
+}
+
+reload() {
+ initService
+ ebegin "Reloading ulogd.conf file"
+ killproc ulogd -HUP
+ RETVAL=$?
+ echo
+ return $RETVAL
+}