Issue #17749 has been reported by Joe McDonagh. ---------------------------------------- Bug #17749: puppetdb init script on ubuntu 10.04 reporting status is running when it's not https://projects.puppetlabs.com/issues/17749
Author: Joe McDonagh Status: Unreviewed Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: initscript Branch: Best explained by the following output: <pre> (jmcdonagh@puppetdb) Tue Nov 20 10:56 AM /dev/pts/0 [~] > sudo /etc/init.d/puppetdb status * puppetdb is running (jmcdonagh@puppetdb) Tue Nov 20 10:56 AM /dev/pts/0 [~] > echo $? 0 (jmcdonagh@puppetdb) Tue Nov 20 10:56 AM /dev/pts/0 [~] > ps aux | grep java logstash 20304 0.3 2.5 4442304 400612 ? Sl 06:43 0:50 /usr/lib/jvm/java-6-openjdk/bin/java -jar /usr/share/logstash/logstash.jar agent -f /etc/logstash/shipper.cfg --log /var/log/logstash/shipper.log 10000 20566 0.0 0.0 7636 912 pts/0 R+ 11:00 0:00 grep java (jmcdonagh@puppetdb) Tue Nov 20 11:00 AM /dev/pts/0 [~] > ps aux | grep pupp mysql 876 6.4 21.5 9628036 3395212 ? Sl Nov13 637:48 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/lib/mysql/puppetdb.err --open-files-limit=8192 --pid-file=/var/lib/mysql/puppetdb.pid --socket=/var/lib/mysql/mysql.sock --port=3306 10000 20569 0.0 0.0 7636 920 pts/0 S+ 11:00 0:00 grep pupp (jmcdonagh@puppetdb) Tue Nov 20 11:00 AM /dev/pts/0 [~] > sudo bash -x /etc/init.d/puppetdb status + '[' -r /etc/default/puppetdb ']' + . /etc/default/puppetdb ++ JAVA_BIN=/usr/bin/java ++ JAVA_ARGS='-Xmx192m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/puppetdb/puppetdb-oom.hprof ' ++ USER=puppetdb ++ INSTALL_DIR=/usr/share/puppetdb ++ CONFIG=/etc/puppetdb/conf.d + PATH=/sbin:/usr/sbin:/bin:/usr/bin + NAME=puppetdb + DESC='puppetdb centralized storage daemon' + JARFILE=puppetdb.jar + PIDFILE=/var/run/puppetdb.pid + SCRIPTNAME=/etc/init.d/puppetdb + JAVA_ARGS='-Xmx192m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/puppetdb/puppetdb-oom.hprof -jar /usr/share/puppetdb/puppetdb.jar services -c /etc/puppetdb/conf.d ' + EXTRA_ARGS='--chuid puppetdb --background --make-pidfile' + '[' -x /usr/bin/java ']' + . /lib/init/vars.sh ++ '[' -f /etc/default/rcS ']' ++ . /etc/default/rcS +++ TMPTIME=0 +++ SULOGIN=no +++ DELAYLOGIN=no +++ UTC=yes +++ VERBOSE=no +++ FSCKFIX=no +++ HWCLOCKACCESS=no ++ '[' -r /proc/cmdline ']' ++ grep -qw noswap /proc/cmdline ++ NOSWAP=no ++ '[' '!' -e /proc/cmdline ']' ++ egrep -qw quiet /proc/cmdline ++ '[' '' ']' ++ true + . /lib/lsb/init-functions ++ FANCYTTY= ++ '[' -e /etc/lsb-base-logging.sh ']' ++ . /etc/lsb-base-logging.sh + case "$1" in + status_of_proc /usr/bin/java puppetdb + local pidfile daemon name status + pidfile= + OPTIND=1 + getopts p: opt + shift 0 + '[' -n '' ']' + daemon=/usr/bin/java + name=puppetdb + status=0 + pidofproc /usr/bin/java + local pidfile line i pids= status specified pid + pidfile= + specified= + OPTIND=1 + getopts p: opt + shift 0 + base=java + '[' '!' '' ']' + pidfile=/var/run/java.pid + '[' -n /var/run/java.pid -a -r /var/run/java.pid ']' + '[' -x /bin/pidof -a '!' '' ']' + status=0 + /bin/pidof -o %PPID -x /usr/bin/java + '[' 0 = 1 ']' + return 0 + '[' 0 = 0 ']' + log_success_msg 'puppetdb is running' + log_use_usplash + '[' n = y ']' + type usplash_write + echo ' * puppetdb is running' * puppetdb is running + return 0 + exit 0 </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
