* Use start-stop-daemon for starting privoxy to avoid problems on start,
[privoxy.git] / privoxy.init
index ff05a7e..aa0577b 100644 (file)
@@ -3,7 +3,7 @@
 # This is file /etc/rc.d/init.d/privoxy and was put here 
 # by the privoxy rpm
 #
-# chkconfig: 235 84 09
+# chkconfig: 2345 84 09
 #
 # description: This shell script takes care of starting and stopping \
 #              privoxy.
@@ -14,9 +14,9 @@
 #  File        :  $Source: /cvsroot/ijbswa/current/privoxy.init,v $
 # 
 #  Purpose     :  This shell script takes care of starting and stopping
-#                 privoxy.
+#                 privoxy on Red Hat and RH compatible systems.
 # 
-#  Copyright   :  Written by and Copyright (C) 2001 the SourceForge
+#  Copyright   :  Written by and Copyright (C) 2001,2002 the SourceForge
 #                 Privoxy team. http://www.privoxy.org/
 # 
 #                 Based on the Internet Junkbuster originally written
 # 
 #  Revisions   :
 #     $Log: privoxy.init,v $
+#     Revision 1.9  2002/09/05 15:38:30  oes
+#     Synced with the stable branch:
+#        Revision 1.8.2.2  2002/08/05 08:42:13  kick_
+#        same permissions, same runlevels as all the other initscripts
+#
+#        Revision 1.8.2.1  2002/07/12 09:14:26  kick_
+#        don't use ghost files for rcX.d/*, chkconfig is available to do this job. Enable translation of error messge
+#
+#     Revision 1.8  2002/04/09 02:51:31  hal9
+#     Changed $JB to $PRIVOXY.
+#
 #     Revision 1.7  2002/04/08 14:54:51  morcego
 #     Moved the chkconfig comments to the begining of the file, couse Linuxconf
 #     was getting confused with it where it was.
@@ -183,8 +194,8 @@ PRIVOXY_LOCK=/var/lock/subsys/$PRIVOXY_PRG
 PRIVOXY="$PRIVOXY_BIN --user $PRIVOXY_USER.$PRIVOXY_USER --pidfile $PRIVOXY_PID $PRIVOXY_CONF"
 
 # some checks for us
-! [ -x $PRIVOXY_BIN  ] && echo "Can't find $PRIVOXY_BIN, exit." && exit 0
-! [ -f $PRIVOXY_CONF ] && echo "Can't find $PRIVOXY_CONF, exit." && exit 0
+! [ -x $PRIVOXY_BIN  ] && echo $"Can't find $PRIVOXY_BIN, exit." && exit 0
+! [ -f $PRIVOXY_CONF ] && echo $"Can't find $PRIVOXY_CONF, exit." && exit 0
 
 # See how we were called.