]> git.pld-linux.org Git - packages/memcached.git/commitdiff
- fix obvious errors
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 4 Feb 2006 14:00:56 +0000 (14:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    memcached.init -> 1.2

memcached.init

index 9af3c12903fc9d72dc6e414cad98ad95dbe9d22f..dacdf24d03a5a6d908c429ce18f9e040e1bd853c 100644 (file)
 # pidfile:      /var/run/memcached.pid
 #
 
-
 # Source function library
 . /etc/rc.d/init.d/functions
 
+# Get network config
+. /etc/sysconfig/network
+
 # Get service config
 [ -f /etc/sysconfig/memcached ] && . /etc/sysconfig/memcached
 
@@ -24,7 +26,7 @@ case "$1" in
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/memcached ]; then
                msg_starting memcached
-               daemon /usr/sbin/memcached -d -u nobody
+               daemon /usr/sbin/memcached -d -u nobody $MEMCACHED_OPTS
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/memcached
        else
@@ -34,7 +36,7 @@ case "$1" in
   stop)
        if [ -f /var/lock/subsys/memcached ]; then
                msg_stopping memcached
-               killproc --pidfile clamav/memcached.pid memcached
+               killproc --pidfile memcached.pid memcached
                rm -f /var/run/memcached.pid /var/lock/subsys/memcached >/dev/null 2>&1
        else
                msg_not_running memcached
This page took 1.060965 seconds and 4 git commands to generate.