Error when starting qpidd as a service
Posted
by
Sparks
on Server Fault
See other posts from Server Fault
or by Sparks
Published on 2012-09-19T20:21:36Z
Indexed on
2012/09/22
15:39 UTC
Read the original article
Hit count: 379
I have recently swapped from CENTOS 5 to FEDORA 17. Previously I have created my own init.d scripts successfully (albeit not for qpidd) however, in FEDORA I cannot get it to work.
I have created the following script (called qpidd) in the init.d directory:
#!/bin/bash
#
# /etc/rc.d/init.d/qpidd
#
# QPID/AMQP Broker scripts
#
#
# chkconfig: 2345 20 80
# description: QPID/AMQP Broker service
# processname: qpidd
# pidfile: /var/lock/subsys/qpidd
# Source function library.
. /etc/init.d/functions
SERVICENAME=qpidd
start() {
echo -n "Starting $SERVICENAME: "
daemon qpidd -d &
retval=$?
touch /var/lock/subsys/$SERVICENAME
return $retval
}
stop() {
echo -n "Shutting down $SERVICENAME: "
qpidd -q &
retval=$?
rm -f /var/lock/subsys/$SERVICENAME
return $retval
}
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status qpidd
;;
restart)
stop
start
;;
condrestart)
[ -f /var/lock/subsys/<service> ] && restart || :
;;
*)
echo "Usage: $SERVICENAME {start|stop|status|restart"
exit 1
;;
esac
exit $?
After this, I ran chkconfig --add qpidd
, however, now when I run sudo service qpidd start
I get the following message:
Starting qpidd (via systemctl): Job failed. See system journal and 'systemctl status' for details.
If I then run systemctl status qpidd
I get the following message:
Failed to issue method call: Unit name qpidd is not valid.
I am now lost, I have search the web and Stack Overflow but cannot find anybody with similar problem, any help or direction to a website that can help would be much appreciated
Sparks :)
© Server Fault or respective owner