examples/remote_syslog.init.d in remote_syslog-1.6.14 vs examples/remote_syslog.init.d in remote_syslog-1.6.15
- old
+ new
@@ -1,7 +1,17 @@
#!/bin/bash
-#
+
+### BEGIN INIT INFO
+# Provides: remote_syslog
+# Required-Start: $remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Start and Stop
+# Description: Runs remote_syslog
+### END INIT INFO
+
# /etc/init.d/remote_syslog
#
# Starts the remote_syslog daemon
#
# chkconfig: 345 90 5
@@ -11,11 +21,11 @@
prog="remote_syslog"
config="/etc/log_files.yml"
pid_dir="/var/run"
-EXTRAOPTIONS="--tls"
+EXTRAOPTIONS=""
pid_file="$pid_dir/$prog.pid"
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
@@ -27,10 +37,10 @@
start(){
echo -n $"Starting $prog: "
unset HOME MAIL USER USERNAME
- $prog -c $config --pid-file $pid_file "$EXTRAOPTIONS"
+ $prog -c $config --pid-file=$pid_file $EXTRAOPTIONS
RETVAL=$?
echo
return $RETVAL
}