| Summary: | sys-cluster/nova - missing /var/lock/nova | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Vadim Kuznetsov (RETIRED) <vadimk> |
| Component: | Current packages | Assignee: | Matthew Thode ( prometheanfire ) <prometheanfire> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
fixed, kthnx (In reply to Matthew Thode ( prometheanfire ) from comment #1) > fixed, kthnx permissions are not fixed. should be 0755 fixed, all ebuilds use the correct init.d
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
description="Starts ${SVCNAME} service for OpenStack"
command=/usr/bin/${SVCNAME}
command_background=yes
pidfile=/var/run/nova/${SVCNAME}.pid
required_files=/etc/nova/nova.conf
start_stop_daemon_args="--quiet --user ${NOVA_USER:-nova}"
depend() {
need net
}
start_pre() {
checkpath --directory --owner ${NOVA_USER:-nova}:${NOVA_GROUP:-nova} --mode 0775 ${NOVA_RUN:-/var/run/nova}
checkpath --directory --owner ${NOVA_USER:-nova}:${NOVA_GROUP:-nova} --mode 0775 ${NOVA_RUN:-/var/lock/nova}
}
|
Folder permissions - 0775. /var/lock/nova is missing. (nova-api failed to start) diff --git a/files/nova.initd b/files/nova.initd index e1f44f8..0bf1b48 100644 --- a/files/nova.initd +++ b/files/nova.initd @@ -2,7 +2,7 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -description="Starts ${SVCNAME} service for OpenStack" +description="Starts ${SVCNAME} service for OpenStack" command=/usr/bin/${SVCNAME} command_background=yes @@ -16,5 +16,6 @@ depend() { } start_pre() { - checkpath --directory --owner ${NOVA_USER:-nova}:${NOVA_GROUP:-nova} --mode 0664 ${NOVA_RUN:-/var/run/nova} + checkpath --directory --owner ${NOVA_USER:-nova}:${NOVA_GROUP:-nova} --mode 0775 \ + ${NOVA_RUN:-/var/run/nova} ${NOVA_LOCK:-/var/lock/nova} }