[Bug 1030197] [NEW] upstart jobs will start services before all network interfaces are up and will not restart on runlevel 1->2
Clint Byrum
clint at fewbar.com
Sat Jul 28 01:08:48 UTC 2012
Public bug reported:
description "Cinder api server"
author "Chuck Short <zulcss at ubuntu.com>
start on (filesystem and net-device-up IFACE!=lo)
stop on runlevel [016]
chdir /var/run
pre-start script
mkdir -p /var/run/cinder
chown cinder:cinder /var/run/cinder
mkdir -p /var/lock/cinder
chown nova:root /var/lock/nova
end script
exec su -s /bin/sh -c "cinder-api" cinder
This should be
start on runlevel [2345]
Which guarantees all interfaces from /etc/network/interfaces have at
least been tried and waited on for 2 minutes (failsafe will boot the
system anyway after 2 minutes)
Also using su is not recommended as it opens a pam session. Instead, use
start-stop-daemon, as recommended here:
http://upstart.ubuntu.com/cookbook/#run-a-job-as-a-different-user
** Affects: cinder (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cinder in Ubuntu.
https://bugs.launchpad.net/bugs/1030197
Title:
upstart jobs will start services before all network interfaces are up
and will not restart on runlevel 1->2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cinder/+bug/1030197/+subscriptions
More information about the Ubuntu-server-bugs
mailing list