blob: a1896bdb71b7ce09428ca62085b1f7bd93d365f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
|