changeset 6:0b03e7656abf

initial version
author carl
date Fri, 10 Mar 2006 12:14:57 -0800
parents b8a3b366635a
children 5241a079fe03
files sm-archive.rc
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/sm-archive.rc	Fri Mar 10 12:06:40 2006 -0800
+++ b/sm-archive.rc	Fri Mar 10 12:14:57 2006 -0800
@@ -1,12 +1,12 @@
 #  -- bash header installed by automake --
 #
-# smarchive   This script controls the smarchive milter daemon.
+# sm-archive   This script controls the sm-archive milter daemon.
 #
 #
 # chkconfig: 2345 79 31
-# description: smarchive allows adding recipients to mail passing thru this milter
-# processname: smarchive
-# pidfile: /var/run/smarchive.pid
+# description: sm-archive allows adding recipients to mail passing thru this milter
+# processname: sm-archive
+# pidfile: /var/run/sm-archive.pid
 # Source function library.
 #
 . /etc/rc.d/init.d/functions
@@ -19,31 +19,31 @@
 case "$1" in
     start)
         # Start daemons.
-        echo -n "Starting smarchive-milter: "
+        echo -n "Starting sm-archive-milter: "
         if [ ! -f /var/lock/subsys/smarchive ]; then
             cd SYSCONFDIR/sm-archive    # conf file is here
-            SBINDIR/smarchive -d 10 -p local:/var/run/smarchive/smarchive.sock
+            SBINDIR/smarchive -d 10 -p local:/var/run/sm-archive/sm-archive.sock
             RETVAL=$?
             pid=`pidof -s SBINDIR/smarchive`
             if [ $pid ]
             then
-                success "Starting smarchive milter:"
+                success "Starting sm-archive milter:"
                 touch /var/lock/subsys/smarchive
                 echo
             else
-                failure "Starting smarchive milter:"
+                failure "Starting sm-archive milter:"
                 echo
             fi
         else
             echo -n "already running! "
-            failure "smarchive milter already running!"
+            failure "sm-archive milter already running!"
             echo
         fi
 
         ;;
     stop)
         # Stop daemons.
-        echo -n "Shutting down smarchive-milter: "
+        echo -n "Shutting down sm-archive-milter: "
         killproc smarchive
         RETVAL=$?
         echo
@@ -59,7 +59,7 @@
         RETVAL=$?
         ;;
     *)
-        echo "Usage: smarchive {start|stop|restart|status}"
+        echo "Usage: sm-archive {start|stop|restart|status}"
         exit 1
 esac
 exit $RETVAL