Search
j0ke.net Open Build Service
>
Projects
>
ha
:
firewall
>
ulogd2
> ulogd.init.rh
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File ulogd.init.rh of Package ulogd2
#!/bin/sh # # chkconfig: 345 81 19 # description: ulogd is the userspace logging daemon for netfilter/iptables # ### BEGIN INIT INFO # Provides: ulogd # Required-Start: $local_fs $network $syslog # Required-Stop: $local_fs $network $syslog # Default-Start: 3 4 5 # Default-Stop: 0 1 2 3 4 5 6 # Short-Description: start|stop|status|restart|try-restart|reload|force-reload DNS server # Description: control ISC BIND implementation of DNS server ### END INIT INFO . /etc/rc.d/init.d/functions function start() { printf "Starting %s: " "ulogd" daemon /usr/sbin/ulogd -d echo touch /var/lock/subsys/ulogd } function stop() { printf "Stopping %s: " "ulogd" killproc ulogd echo rm -f /var/lock/subsys/ulogd } function reload() { pid=`pidof ulogd` if [ "x$pid" != "x" ]; then kill -HUP $pid 2>/dev/null fi touch /var/lock/subsys/ulogd } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; reload) reload ;; status) status ulogd ;; *) printf "Usage: %s {start|stop|status|restart|reload}\n" "ulogd" exit 1 esac exit 0