"Fossies" - the Fresh Open Source Software Archive

Member "memcached-1.6.15/scripts/memcached.upstart" (16 Jul 2020, 571 Bytes) of package /linux/www/memcached-1.6.15.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 description "memcached - high performance memory caching daemon"
    2 author "Cameron Norman <camerontnorman@gmail.com>"
    3 
    4 start on filesystem
    5 stop on runlevel [016]
    6 
    7 pre-start script
    8     ret=0
    9 
   10     test -x /usr/bin/memcached || { stop; exit 0; }
   11 
   12     # Main
   13     start memcached-server || ret=$?
   14     # Instances
   15     for i in /etc/memcached_*.conf; do
   16         i=${i#/etc/memcached_}
   17         i=${i%.conf}
   18         test "$i" = "*" && continue
   19         start memcached-server SERVER=$i || ret=$?
   20     done
   21 
   22     exit $ret
   23 end script
   24 
   25 post-stop exec initctl emit stop-memcached-servers