Created
July 7, 2014 20:40
-
-
Save ram-nadella/272bff4ba4c25a83eced to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~]> sudo sh -x /etc/init.d/memcached restart | |
[sudo] password for rnadella: | |
+ . /etc/init.d/functions | |
++ TEXTDOMAIN=initscripts | |
++ umask 022 | |
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
++ export PATH | |
++ '[' -z '' ']' | |
++ COLUMNS=80 | |
++ '[' -z '' ']' | |
+++ /sbin/consoletype | |
++ CONSOLETYPE=pty | |
++ '[' -f /etc/sysconfig/i18n -a -z '' -a -z '' ']' | |
++ . /etc/profile.d/lang.sh | |
++ unset LANGSH_SOURCED | |
++ '[' -z '' ']' | |
++ '[' -f /etc/sysconfig/init ']' | |
++ . /etc/sysconfig/init | |
+++ BOOTUP=color | |
+++ RES_COL=60 | |
+++ MOVE_TO_COL='echo -en \033[60G' | |
+++ SETCOLOR_SUCCESS='echo -en \033[0;32m' | |
+++ SETCOLOR_FAILURE='echo -en \033[0;31m' | |
+++ SETCOLOR_WARNING='echo -en \033[0;33m' | |
+++ SETCOLOR_NORMAL='echo -en \033[0;39m' | |
+++ PROMPT=yes | |
+++ AUTOSWAP=no | |
+++ ACTIVE_CONSOLES='/dev/tty[1-6]' | |
+++ SINGLE=/sbin/sushell | |
++ '[' pty = serial ']' | |
++ __sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d' | |
+ PORT=11211 | |
+ USER=memcached | |
+ MAXCONN=1024 | |
+ CACHESIZE=64 | |
+ OPTIONS= | |
+ '[' -f /etc/sysconfig/memcached ']' | |
+ . /etc/sysconfig/network | |
++ NETWORKING=yes | |
++ GATEWAY=10.101.192.140 | |
++ HOSTNAME=rnadella.vm.ny4dev.etsy.com | |
+ '[' yes = no ']' | |
+ RETVAL=0 | |
+ prog=memcached | |
+ pidfile=/var/run/memcached/memcached.pid | |
+ lockfile=/var/lock/subsys/memcached | |
+ case "$1" in | |
+ restart | |
+ stop | |
+ echo -n 'Stopping memcached: ' | |
Stopping memcached: + killproc -p /var/run/memcached/memcached.pid /usr/bin/memcached | |
+ local RC killlevel= base pid pid_file= delay | |
+ RC=0 | |
+ delay=3 | |
+ '[' 3 -eq 0 ']' | |
+ '[' -p = -p ']' | |
+ pid_file=/var/run/memcached/memcached.pid | |
+ shift 2 | |
+ '[' /usr/bin/memcached = -d ']' | |
+ '[' -n '' ']' | |
+ base=memcached | |
+ __pids_var_run /usr/bin/memcached /var/run/memcached/memcached.pid | |
+ local base=memcached | |
+ local pid_file=/var/run/memcached/memcached.pid | |
+ pid= | |
+ '[' -f /var/run/memcached/memcached.pid ']' | |
+ return 3 | |
+ RC=3 | |
+ '[' -z '' ']' | |
+ '[' -z /var/run/memcached/memcached.pid ']' | |
+ '[' 3 = 4 ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' -a -n '' ']' | |
+ failure 'memcached shutdown' | |
+ local rc=1 | |
+ '[' color '!=' verbose -a -z '' ']' | |
+ echo_failure | |
+ '[' color = color ']' | |
+ echo -en '\033[60G' | |
+ echo -n '[' | |
[+ '[' color = color ']' | |
+ echo -en '\033[0;31m' | |
+ echo -n FAILED | |
FAILED+ '[' color = color ']' | |
+ echo -en '\033[0;39m' | |
+ echo -n ']' | |
]+ echo -ne '\r' | |
+ return 1 | |
+ '[' -x /bin/plymouth ']' | |
+ /bin/plymouth --details | |
+ return 1 | |
+ RC=0 | |
+ '[' -z '' ']' | |
+ rm -f /var/run/memcached/memcached.pid | |
+ return 0 | |
+ RETVAL=0 | |
+ echo | |
+ '[' 0 -eq 0 ']' | |
+ rm -f /var/lock/subsys/memcached /var/run/memcached/memcached.pid | |
+ start | |
+ echo -n 'Starting memcached: ' | |
Starting memcached: ++ stat -c %U /var/run/memcached | |
+ '[' memcached '!=' memcached ']' | |
+ daemon --pidfile /var/run/memcached/memcached.pid memcached -d -p 11211 -u memcached -m 64 -c 1024 -P /var/run/memcached/memcached.pid | |
+ local gotbase= force= nicelevel corelimit | |
+ local pid base= user= nice= bg= pid_file= | |
+ local cgroup= | |
+ nicelevel=0 | |
+ '[' --pidfile '!=' -pidfile ']' | |
+ case $1 in | |
+ pid_file=/var/run/memcached/memcached.pid | |
+ shift 2 | |
+ '[' memcached '!=' memcached ']' | |
+ '[' -z '' ']' | |
+ base=memcached | |
+ __pids_var_run memcached /var/run/memcached/memcached.pid | |
+ local base=memcached | |
+ local pid_file=/var/run/memcached/memcached.pid | |
+ pid= | |
+ '[' -f /var/run/memcached/memcached.pid ']' | |
+ return 3 | |
+ '[' -n '' -a -z '' ']' | |
+ corelimit='ulimit -S -c 0' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ '[' color = verbose -a -z '' ']' | |
+ '[' -z '' ']' | |
+ /bin/bash -c 'ulimit -S -c 0 >/dev/null 2>&1 ; memcached -d -p 11211 -u memcached -m 64 -c 1024 -P /var/run/memcached/memcached.pid' | |
+ '[' 0 -eq 0 ']' | |
+ success 'memcached startup' | |
+ '[' color '!=' verbose -a -z '' ']' | |
+ echo_success | |
+ '[' color = color ']' | |
+ echo -en '\033[60G' | |
+ echo -n '[' | |
[+ '[' color = color ']' | |
+ echo -en '\033[0;32m' | |
+ echo -n ' OK ' | |
OK + '[' color = color ']' | |
+ echo -en '\033[0;39m' | |
+ echo -n ']' | |
]+ echo -ne '\r' | |
+ return 0 | |
+ return 0 | |
+ RETVAL=0 | |
+ echo | |
+ '[' 0 -eq 0 ']' | |
+ touch /var/lock/subsys/memcached | |
+ exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment