public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-cluster/nova/files: nova-initd nova-confd nova-sudoers
@ 2013-09-05 20:57 Matt Thode (prometheanfire)
  0 siblings, 0 replies; only message in thread
From: Matt Thode (prometheanfire) @ 2013-09-05 20:57 UTC (permalink / raw
  To: gentoo-commits

prometheanfire    13/09/05 20:57:34

  Added:                nova-initd nova-confd nova-sudoers
  Log:
  updatign deps, some havana stuff, some init stuff, fixing bugs 483384 482698
  
  (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)

Revision  Changes    Path
1.1                  sys-cluster/nova/files/nova-initd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/nova/files/nova-initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/nova/files/nova-initd?rev=1.1&content-type=text/plain

Index: nova-initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

BASENAME=$(echo $SVCNAME | cut -d '-' -f 1)
SERVERNAME=$(echo $SVCNAME | cut -d '-' -f 2)

depend() {
    need net 
}

checkconfig() {
    if [ ! -r /etc/conf.d/$BASENAME ]; then
        eerror "No nova conf.d file found: /etc/conf.d/$BASENAME)"
        return 1
    fi
    return 0
}

start() {
    checkconfig || return $?
    . /etc/conf.d/$BASENAME
    
    ebegin "Starting ${SVCNAME}"
        if [ ! -d ${PID_PATH} ]; then
                mkdir ${PID_PATH}
        chown nova:root ${PID_PATH}
        fi

    if [ ! -d ${LOCKDIR_PATH} ]; then
                mkdir ${LOCKDIR_PATH}
        chown nova:root ${LOCKDIR_PATH}
        fi

    start-stop-daemon --start \
              --quiet \
              --user nova \
              --pidfile "${PID_PATH}/${SVCNAME}.pid" \
              --make-pidfile \
              --background \
              --exec /usr/bin/nova-${SERVERNAME} --  --config-file /etc/nova/nova.conf
    
    eend $? "Failed to start ${SVCNAME}"
}

stop() {
    checkconfig || return $?
    . /etc/conf.d/$BASENAME
    
    ebegin "Stopping ${SVCNAME}"
    
    start-stop-daemon --stop \
              --quiet \
              --user nova \
              --pidfile "${PID_PATH}/${SVCNAME}.pid" \
              --exec /usr/bin/nova-${SERVERNAME} --  --config-file /etc/nova/nova.conf

    eend $? "Failed to stop ${SVCNAME}"
}

#restart() {
#
#}



1.1                  sys-cluster/nova/files/nova-confd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/nova/files/nova-confd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/nova/files/nova-confd?rev=1.1&content-type=text/plain

Index: nova-confd
===================================================================
#Don't touch this unless you know what you are doing
PID_PATH=/run/nova
LOCKDIR_PATH=/var/lock/nova




1.1                  sys-cluster/nova/files/nova-sudoers

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/nova/files/nova-sudoers?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/nova/files/nova-sudoers?rev=1.1&content-type=text/plain

Index: nova-sudoers
===================================================================
Defaults:nova !requiretty

nova ALL = (root) NOPASSWD: /usr/bin/nova-rootwrap





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-05 20:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05 20:57 [gentoo-commits] gentoo-x86 commit in sys-cluster/nova/files: nova-initd nova-confd nova-sudoers Matt Thode (prometheanfire)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox