3 # distcache Startup script for the Distcache SSL Session Cache Client Proxy
6 # description: Distcache is a Distributed SSL Session Cache Client Proxy.
7 # processname: dc_client
8 # config: /etc/sysconfig/distcache
9 # pidfile: /var/run/dc_client.pid
11 # Source function library.
12 . /etc/rc.d/init.d/functions
14 if [ -f /etc/sysconfig/distcache ]; then
15 . /etc/sysconfig/distcache
19 socket=${SOCKET-/var/cache/mod_ssl/distcache}
20 server=${SERVER-localhost}:${port}
26 dc_client=/usr/bin/dc_client
27 pidfile=/var/run/dc_client.pid
29 OPTIONS="-daemon -pidfile ${pidfile} -listen UNIX:${socket} \
30 -sockowner ${owner} -sockperms 0600 -user ${runas} -server IP:${server}"
33 echo -n $"Starting $prog: "
34 daemon $dc_client $OPTIONS
37 [ $RETVAL = 0 ] && touch /var/lock/subsys/dc_client
41 echo -n $"Stopping $prog: "
45 [ $RETVAL = 0 ] && rm -f /var/lock/subsys/dc_client /var/run/dc_client.pid
48 # See how we were called.
65 if [ -f /var/run/dc_client.pid ] ; then
74 echo $"Usage: $prog {start|stop|restart|condrestart|status|help}"