diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-03-08 20:03:37 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-03-08 20:03:37 +0000 |
commit | dbe4a508c86c2a3c6e7af3e66a06fa54d1cdf368 (patch) | |
tree | 58289dd96dbdfd54331316f3523e943b62a078cd /packaging/redhat/tinyproxy-initd | |
parent | 20d3008c38c5d25be043ea364378ad0ed10680fb (diff) | |
download | tinyproxy-dbe4a508c86c2a3c6e7af3e66a06fa54d1cdf368.tar.gz tinyproxy-dbe4a508c86c2a3c6e7af3e66a06fa54d1cdf368.zip |
Added the files required for creating tinyproxy RPMs for Redhat based
systems.
Diffstat (limited to '')
-rw-r--r-- | packaging/redhat/tinyproxy-initd | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/packaging/redhat/tinyproxy-initd b/packaging/redhat/tinyproxy-initd new file mode 100644 index 0000000..a1896bd --- /dev/null +++ b/packaging/redhat/tinyproxy-initd @@ -0,0 +1,41 @@ +#!/bin/bash + +# initfile for tinyproxy +# +# description: A small, efficient HTTP/SSL proxy daemon. +# +# processname: tinyproxy +# +# chkconfig 2345 +# + +. /etc/rc.d/init.d/functions + +case "$1" in + start) + echo -n "Starting tinyproxy: " + daemon /usr/sbin/tinyproxy + touch /var/lock/subsys/tinyproxy + echo + ;; + stop) + echo -n "Shutting down tinyproxy: " + killproc tinyproxy + rm -f /var/lock/subsys/tinyproxy + echo + ;; + restart) + $0 stop + $0 start + ;; + status) + status tinyproxy + ;; + *) + echo "Usage: tinyproxy {start|stop|restart|status}" + exit 1 +esac + +exit 0 + + |