diff options
author | Mukund Sivaraman <muks@banu.com> | 2008-03-30 16:48:47 -0700 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2008-03-30 16:48:47 -0700 |
commit | e229b360839fbfa3935707ba2c84f8041cf106c0 (patch) | |
tree | 076d1e68b977461762b2f6daa247bb863539946f /rpm/tinyproxy-initd | |
parent | d9c41d4e4d12530ea2f6239c5db2c4bad182eeaf (diff) | |
download | tinyproxy-e229b360839fbfa3935707ba2c84f8041cf106c0.tar.gz tinyproxy-e229b360839fbfa3935707ba2c84f8041cf106c0.zip |
Moved RPM packaging dir to top-level
Diffstat (limited to 'rpm/tinyproxy-initd')
-rw-r--r-- | rpm/tinyproxy-initd | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/rpm/tinyproxy-initd b/rpm/tinyproxy-initd new file mode 100644 index 0000000..a1896bd --- /dev/null +++ b/rpm/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 + + |