Revision bb84cf5f
b/debian/changelog | ||
---|---|---|
1 |
synnefo (0.12.4-1) stable; urgency=low |
|
2 |
|
|
3 |
* New upstream version |
|
4 |
|
|
5 |
-- Vangelis Koukis <vkoukis@grnet.gr> Tue, 11 Dec 2012 09:37:43 +0200 |
b/debian/clean | ||
---|---|---|
1 |
snf_common.egg-info/* |
b/debian/compat | ||
---|---|---|
1 |
8 |
b/debian/control | ||
---|---|---|
1 |
Source: synnefo |
|
2 |
Section: python |
|
3 |
Priority: optional |
|
4 |
Maintainer: Dimitris Aragiorgis <dimara@grnet.gr> |
|
5 |
Build-Depends: debhelper (>= 8), python-all (>= 2.5) |
|
6 |
Standards-Version: 3.9.2 |
|
7 |
XS-Python-Version: >= 2.6 |
|
8 |
Homepage: https://code.grnet.gr/projects/synnefo |
|
9 |
|
|
10 |
Package: synnefo |
|
11 |
Version: 0.13 |
|
12 |
Section: python |
|
13 |
Priority: optional |
|
14 |
Architecture: all |
|
15 |
Depends: snf-common, snf-cyclades-app, snf-cyclades-gtools, snf-webproject, snf-astakos-app, snf-pithos-app, snf-pithos-backend |
|
16 |
Description: Synnefo meta package |
|
17 |
|
|
18 |
Package: snf-common |
|
19 |
Architecture: all |
|
20 |
Depends: ${misc:Depends}, ${python:Depends}, python-setuptools |
|
21 |
Provides: ${python:Provides} |
|
22 |
Replaces: snf-ganeti-tools |
|
23 |
XB-Python-Version: ${python:Versions} |
|
24 |
Description: Synnefo common package |
|
25 |
|
|
26 |
Package: snf-cyclades-app |
|
27 |
Architecture: all |
|
28 |
Depends: ${misc:Depends}, ${python:Depends}, snf-common, python-django-south (>= 0.7) |
|
29 |
Provides: ${python:Provides} |
|
30 |
Replaces: snf-network |
|
31 |
Recommends: snf-webproject |
|
32 |
XB-Python-Version: ${python:Versions} |
|
33 |
Description: Synnefo cyclades package |
|
34 |
|
|
35 |
Package: snf-cyclades-gtools |
|
36 |
Architecture: all |
|
37 |
Depends: ${misc:Depends}, ${python:Depends}, ganeti2, snf-common, snf-network |
|
38 |
Provides: ${python:Provides} |
|
39 |
XB-Python-Version: ${python:Versions} |
|
40 |
Description: Synnefo Ganeti supplementary tools |
|
41 |
This package contains the supplementary tools for Ganeti needed |
|
42 |
by the synnefo software. |
|
43 |
. |
|
44 |
Included are: |
|
45 |
* snf-ganeti-hook, a Ganeti hook that message the Synnefo queue |
|
46 |
* snf-ganeti-eventd, a daemon watching the Ganeti job queue |
|
47 |
* snf-progress-monitor, a utility to monitor image deployment and |
|
48 |
produce notifications to the Synnefo queue |
|
49 |
|
|
50 |
Package: snf-webproject |
|
51 |
Architecture: all |
|
52 |
Depends: ${misc:Depends}, ${python:Depends}, snf-common, python-django-south (>= 0.7) |
|
53 |
Provides: ${python:Provides} |
|
54 |
XB-Python-Version: ${python:Versions} |
|
55 |
Description: Synnefo webproject package |
|
56 |
|
|
57 |
Package: snf-astakos-app |
|
58 |
Architecture: all |
|
59 |
Depends: ${misc:Depends}, ${python:Depends} |
|
60 |
Provides: ${python:Provides} |
|
61 |
Recommends: snf-webproject |
|
62 |
XB-Python-Version: ${python:Versions} |
|
63 |
Description: Identity management, catalog and policy services. |
|
64 |
Built by GRNET using Django (https://www.djangoproject.com/). |
|
65 |
Learn more about Astakos at: http://code.grnet.gr/projects/astakos |
|
66 |
Consult LICENSE for licensing information. |
|
67 |
|
|
68 |
Package: snf-pithos-app |
|
69 |
Architecture: all |
|
70 |
Depends: ${misc:Depends}, ${python:Depends}, snf-pithos-backend, snf-common |
|
71 |
Recommends: snf-webproject |
|
72 |
Provides: ${python:Provides} |
|
73 |
XB-Python-Version: ${python:Versions} |
|
74 |
Description: Pithos web app |
|
75 |
|
|
76 |
Package: snf-pithos-backend |
|
77 |
Architecture: all |
|
78 |
Depends: ${misc:Depends}, ${python:Depends}, snf-common, |
|
79 |
python-argparse |
|
80 |
Replaces: snf-pithos-lib |
|
81 |
Provides: ${python:Provides} |
|
82 |
XB-Python-Version: ${python:Versions} |
|
83 |
Description: Pithos backend library |
|
84 |
|
|
85 |
Package: snf-pithos-tools |
|
86 |
Architecture: all |
|
87 |
Depends: ${misc:Depends}, ${python:Depends}, snf-common |
|
88 |
Provides: ${python:Provides} |
|
89 |
Replaces: snf-pithos-backend |
|
90 |
XB-Python-Version: ${python:Versions} |
|
91 |
Description: Synnefo pithos tools |
|
92 |
|
|
93 |
Package: snf-tools |
|
94 |
Architecture: all |
|
95 |
Depends: ${misc:Depends}, ${python:Depends} |
|
96 |
Provides: ${python:Provides} |
|
97 |
XB-Python-Version: ${python:Versions} |
|
98 |
Description: Synnefo tools package |
b/debian/copyright | ||
---|---|---|
1 |
Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174&view=co |
|
2 |
Upstream-Name: Synnefo |
|
3 |
Upstream-Contact: GRNET development team <synnefo@lists.grnet.gr> |
|
4 |
Source: https://code.grnet.gr/projects/synnefo |
|
5 |
|
|
6 |
Files: * |
|
7 |
Copyright: Copyright (C) 2011, 2012 GRNET S.A. |
|
8 |
Licence: BSD-2-clause |
|
9 |
|
|
10 |
Licence: BSD-2-clause |
|
11 |
Redistribution and use in source and binary forms, with or |
|
12 |
without modification, are permitted provided that the following |
|
13 |
conditions are met: |
|
14 |
. |
|
15 |
1. Redistributions of source code must retain the above |
|
16 |
copyright notice, this list of conditions and the following |
|
17 |
disclaimer. |
|
18 |
. |
|
19 |
2. Redistributions in binary form must reproduce the above |
|
20 |
copyright notice, this list of conditions and the following |
|
21 |
disclaimer in the documentation and/or other materials |
|
22 |
provided with the distribution. |
|
23 |
. |
|
24 |
THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS |
|
25 |
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
26 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|
27 |
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR |
|
28 |
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
29 |
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
30 |
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
|
31 |
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
|
32 |
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
|
33 |
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
|
34 |
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
35 |
POSSIBILITY OF SUCH DAMAGE. |
|
36 |
. |
|
37 |
The views and conclusions contained in the software and |
|
38 |
documentation are those of the authors and should not be |
|
39 |
interpreted as representing official policies, either expressed |
|
40 |
or implied, of GRNET S.A. |
|
41 |
. |
|
42 |
On Debian systems, the full text of the GNU General Public |
|
43 |
License version 2 can be found in the file |
|
44 |
`/usr/share/common-licenses/BSD'. |
b/debian/gbp.conf | ||
---|---|---|
1 |
[DEFAULT] |
|
2 |
sign-tags = False |
|
3 |
pristine-tar = False |
|
4 |
|
|
5 |
[git-buildpackage] |
|
6 |
export-dir = ../build-area/ |
|
7 |
tarball-dir = ../tarballs/ |
|
8 |
debian-branch = debian |
|
9 |
upstream-branch = master |
b/debian/pydist-overrides | ||
---|---|---|
1 |
Django python-django |
|
2 |
httplib2 python-httplib2 |
|
3 |
south python-django-south |
b/debian/rules | ||
---|---|---|
1 |
#!/usr/bin/make -f |
|
2 |
# Sample debian/rules that uses debhelper. |
|
3 |
# This file is public domain software, originally written by Joey Hess. |
|
4 |
# |
|
5 |
|
|
6 |
# Uncomment this to turn on verbose mode. |
|
7 |
export DH_VERBOSE=1 |
|
8 |
|
|
9 |
BUILDDIR := debian |
|
10 |
DESTDIR := ${CURDIR}/${BUILDDIR} |
|
11 |
|
|
12 |
PACKAGES = \ |
|
13 |
snf-astakos-app \ |
|
14 |
snf-common \ |
|
15 |
snf-cyclades-app \ |
|
16 |
snf-cyclades-gtools \ |
|
17 |
snf-webproject \ |
|
18 |
snf-pithos-app \ |
|
19 |
snf-pithos-backend \ |
|
20 |
snf-tools |
|
21 |
|
|
22 |
%: |
|
23 |
dh $@ --with python2 |
|
24 |
|
|
25 |
|
|
26 |
override_dh_auto_install: |
|
27 |
for package in $(PACKAGES); do \ |
|
28 |
cd $$package ; \ |
|
29 |
python setup.py install --root=$(DESTDIR)/$$package --install-layout=deb ; \ |
|
30 |
cd - ; \ |
|
31 |
done |
|
32 |
-for py in $(shell pyversions -vr debian/control); do \ |
|
33 |
rm $(DESTDIR)/*/usr/lib/python$$py/*-packages/*-nspkg.pth; \ |
|
34 |
done |
|
35 |
dh_install |
|
36 |
|
|
37 |
override_dh_fixperms: |
|
38 |
dh_fixperms |
|
39 |
chmod 0640 $(DESTDIR)/*/etc/synnefo/* |
|
40 |
chmod 0750 $(DESTDIR)/*/etc/synnefo |
|
41 |
chown -R root:www-data $(DESTDIR)/*/etc/synnefo |
|
42 |
|
|
43 |
override_dh_installinit: |
|
44 |
dh_installinit --name=snf-ganeti-eventd --error-handler=true -- defaults 20 80 -i |
|
45 |
dh_installinit --name=snf-dispatcher --error-handler=true -- defaults 20 80 -i |
|
46 |
|
|
47 |
override_dh_build: |
b/debian/snf-astakos-app.dirs | ||
---|---|---|
1 |
usr/share/synnefo/static/im |
|
2 |
etc/synnefo |
b/debian/snf-astakos-app.install | ||
---|---|---|
1 |
snf-astakos-app/astakos/im/static/im usr/share/synnefo/static |
|
2 |
snf-astakos-app/conf/* etc/synnefo |
b/debian/snf-common.dirs | ||
---|---|---|
1 |
etc/synnefo |
b/debian/snf-common.install | ||
---|---|---|
1 |
# this package provides the synnefo and synnefo.versions namespace __init__.py |
|
2 |
snf-common/synnefo/__init__.py usr/lib/python2.6/dist-packages/synnefo |
|
3 |
snf-common/synnefo/__init__.py usr/lib/python2.6/dist-packages/synnefo/versions |
|
4 |
snf-common/conf/* etc/synnefo |
b/debian/snf-cyclades-app.dirs | ||
---|---|---|
1 |
usr/share/synnefo/static/ui |
|
2 |
usr/share/synnefo/static/admin |
|
3 |
var/log/synnefo |
b/debian/snf-cyclades-app.install | ||
---|---|---|
1 |
snf-cyclades-app/synnefo/ui/static usr/share/synnefo/static/ui |
|
2 |
snf-cyclades-app/synnefo/admin/static usr/share/synnefo/static/admin |
|
3 |
snf-cyclades-app/conf/* etc/synnefo |
b/debian/snf-cyclades-app.snf-dispatcher.default | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
# |
|
3 |
# This file is a shell script to be sourced by the appropriate |
|
4 |
# init.d script |
|
5 |
# |
|
6 |
|
|
7 |
VERBOSE=yes |
|
8 |
|
|
9 |
# Run as a daemon? true/false |
|
10 |
SNF_DSPTCH_ENABLE=true |
|
11 |
|
|
12 |
# User to run the dispatcher as |
|
13 |
SNF_USER="www-data" |
|
14 |
|
|
15 |
SNF_DSPTCH_OPTS="--workers=2" |
b/debian/snf-cyclades-app.snf-dispatcher.init | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
|
|
3 |
### BEGIN INIT INFO |
|
4 |
# Provides: snf-dispatcher |
|
5 |
# Required-Start: $remote_fs $syslog |
|
6 |
# Required-Stop: $remote_fs $syslog |
|
7 |
# Default-Start: 2 3 4 5 |
|
8 |
# Default-Stop: 0 1 6 |
|
9 |
# Short-Description: Synnefo dispatcher daemon |
|
10 |
# Description: Dispatcher is a daemon for the synnefo middleware logic layer |
|
11 |
### END INIT INFO |
|
12 |
|
|
13 |
set -e |
|
14 |
|
|
15 |
# /etc/init.d/snf-dispatcher: start and stop the dispatcher daemon |
|
16 |
|
|
17 |
DAEMON=/usr/bin/snf-dispatcher |
|
18 |
SNF_DSPTCH_OPTS='' |
|
19 |
SNF_DSPTCH_DEFAULTS_FILE=/etc/default/snf-dispatcher |
|
20 |
SNF_DSPTCH_RUNDIR=/var/run/synnefo |
|
21 |
SNF_DSPTCH_PID_FILE=$SNF_DSPTCH_RUNDIR/snf_dispatcher.pid |
|
22 |
|
|
23 |
test -x $DAEMON || exit 0 |
|
24 |
|
|
25 |
. /lib/lsb/init-functions |
|
26 |
|
|
27 |
if [ -s $SNF_DSPTCH_DEFAULTS_FILE ]; then |
|
28 |
. $SNF_DSPTCH_DEFAULTS_FILE |
|
29 |
SNF_DSPTCH_OPTS=$SNF_DSPTCH_OPTS" -p $SNF_DSPTCH_PID_FILE" |
|
30 |
case "x$SNF_DSPTCH_ENABLE" in |
|
31 |
xtrue|xfalse) ;; |
|
32 |
*) log_failure_msg "Value of SNF_DSPTCH_ENABLE in $SNF_DSPTCH_DEFAULTS_FILE must be either 'true' or 'false';" |
|
33 |
log_failure_msg "not starting dispatcher daemon." |
|
34 |
exit 1 |
|
35 |
;; |
|
36 |
esac |
|
37 |
fi |
|
38 |
|
|
39 |
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" |
|
40 |
|
|
41 |
dispatcher_start() { |
|
42 |
if start-stop-daemon --start --chuid $SNF_USER --exec $DAEMON -- $SNF_DSPTCH_OPTS; then |
|
43 |
rc=0 |
|
44 |
sleep 1 |
|
45 |
if ! kill -0 $(cat $SNF_DSPTCH_PID_FILE) >/dev/null 2>&1; then |
|
46 |
log_failure_msg "snf-dispatcher daemon failed to start" |
|
47 |
rc=1 |
|
48 |
fi |
|
49 |
else |
|
50 |
rc=1 |
|
51 |
fi |
|
52 |
|
|
53 |
if [ $rc -eq 0 ]; then |
|
54 |
log_end_msg 0 |
|
55 |
else |
|
56 |
log_end_msg 1 |
|
57 |
rm -f $SNF_DSPTCH_PID_FILE |
|
58 |
fi |
|
59 |
} # dispatcher_start |
|
60 |
|
|
61 |
|
|
62 |
case "$1" in |
|
63 |
start) |
|
64 |
# Ensure the directory containing the pidfile exists |
|
65 |
# and has the right permissions |
|
66 |
mkdir -p $SNF_DSPTCH_RUNDIR |
|
67 |
chown $SNF_USER $SNF_DSPTCH_RUNDIR |
|
68 |
chmod 0755 $SNF_DSPTCH_RUNDIR |
|
69 |
|
|
70 |
if "$SNF_DSPTCH_ENABLE"; then |
|
71 |
log_daemon_msg "Starting snf-dispatcher daemon" "snf-dispatcher" |
|
72 |
if [ -s $SNF_DSPTCH_PID_FILE ] && kill -0 $(cat $SNF_DSPTCH_PID_FILE) >/dev/null 2>&1; then |
|
73 |
log_progress_msg "apparently already running" |
|
74 |
log_end_msg 0 |
|
75 |
exit 0 |
|
76 |
fi |
|
77 |
dispatcher_start |
|
78 |
else |
|
79 |
[ "$VERBOSE" != no ] && log_warning_msg "snf-dispatcher daemon not enabled in $SNF_DSPTCH_DEFAULTS_FILE, not starting..." |
|
80 |
fi |
|
81 |
;; |
|
82 |
stop) |
|
83 |
log_daemon_msg "Stopping snf-dispatcher daemon" "snf-dispatcher" |
|
84 |
start-stop-daemon --stop --quiet --oknodo --pidfile $SNF_DSPTCH_PID_FILE |
|
85 |
log_end_msg $? |
|
86 |
rm -f $SNF_DSPTCH_PID_FILE |
|
87 |
;; |
|
88 |
|
|
89 |
restart) |
|
90 |
set +e |
|
91 |
if $SNF_DSPTCH_ENABLE; then |
|
92 |
log_daemon_msg "Restarting dispatcher daemon" "dispatcher" |
|
93 |
if [ -s $SNF_DSPTCH_PID_FILE ] && kill -0 $(cat $SNF_DSPTCH_PID_FILE) >/dev/null 2>&1; then |
|
94 |
start-stop-daemon --stop --quiet --oknodo --pidfile $SNF_DSPTCH_PID_FILE || true |
|
95 |
sleep 1 |
|
96 |
else |
|
97 |
log_warning_msg "dispatcher daemon not running, attempting to start." |
|
98 |
rm -f $SNF_DSPTCH_PID_FILE |
|
99 |
fi |
|
100 |
dispatcher_start |
|
101 |
else |
|
102 |
[ "$VERBOSE" != no ] && log_warning_msg "dispatcher daemon not enabled in $SNF_DSPTCH_DEFAULTS_FILE, not starting..." |
|
103 |
fi |
|
104 |
;; |
|
105 |
|
|
106 |
status) |
|
107 |
status_of_proc -p $SNF_DSPTCH_PID_FILE "$DAEMON" dispatcher |
|
108 |
exit $? # notreached due to set -e |
|
109 |
;; |
|
110 |
*) |
|
111 |
echo "Usage: /etc/init.d/snf-dispatcher {start|stop|restart|status}" |
|
112 |
exit 1 |
|
113 |
esac |
|
114 |
|
|
115 |
exit 0 |
|
116 |
|
b/debian/snf-cyclades-gtools.dirs | ||
---|---|---|
1 |
usr/sbin |
|
2 |
etc/synnefo |
|
3 |
etc/ganeti/hooks/instance-add-post.d |
|
4 |
etc/ganeti/hooks/instance-modify-post.d |
|
5 |
etc/ganeti/hooks/instance-reboot-post.d |
|
6 |
etc/ganeti/hooks/instance-start-post.d |
|
7 |
etc/ganeti/hooks/instance-stop-post.d |
b/debian/snf-cyclades-gtools.install | ||
---|---|---|
1 |
snf-cyclades-gtools/conf/* etc/synnefo |
b/debian/snf-cyclades-gtools.snf-ganeti-eventd.default | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
|
|
3 |
SNF_EVENTD_ENABLE=false |
|
4 |
SNF_USER="root" |
|
5 |
SNF_EVENTD_OPTS="" |
b/debian/snf-cyclades-gtools.snf-ganeti-eventd.init | ||
---|---|---|
1 |
#! /bin/sh |
|
2 |
|
|
3 |
### BEGIN INIT INFO |
|
4 |
# Provides: snf-ganeti-eventd |
|
5 |
# Required-Start: $remote_fs $syslog ganeti |
|
6 |
# Required-Stop: $remote_fs $syslog |
|
7 |
# Default-Start: 2 3 4 5 |
|
8 |
# Default-Stop: 0 1 6 |
|
9 |
# X-Start-After: ganeti |
|
10 |
# Short-Description: Synnefo ganeti-eventd daemon |
|
11 |
# Description: ganeti-eventd is a daemon |
|
12 |
### END INIT INFO |
|
13 |
|
|
14 |
set -e |
|
15 |
|
|
16 |
# /etc/init.d/snf-ganeti-eventd: start and stop the ganeti-eventd daemon |
|
17 |
# script skeleton stolen from rsyncd |
|
18 |
|
|
19 |
|
|
20 |
DAEMON=/usr/sbin/snf-ganeti-eventd |
|
21 |
SNF_EVENTD_PID_FILE=/var/run/snf-ganeti-eventd.pid |
|
22 |
SNF_EVENTD_DEFAULTS=/etc/default/snf-ganeti-eventd |
|
23 |
SNF_EVENTD_OPTS='' |
|
24 |
SNF_EVENTD_ENABLE=true |
|
25 |
SNF_USER="root" |
|
26 |
|
|
27 |
test -x $DAEMON || exit 0 |
|
28 |
|
|
29 |
. /lib/lsb/init-functions |
|
30 |
|
|
31 |
if [ -s $SNF_EVENTD_DEFAULTS ]; then |
|
32 |
. $SNF_EVENTD_DEFAULTS |
|
33 |
fi |
|
34 |
|
|
35 |
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" |
|
36 |
|
|
37 |
check_ganeti_master() { |
|
38 |
MASTER=`/usr/sbin/gnt-cluster getmaster` |
|
39 |
HOST=`/bin/hostname -f` |
|
40 |
|
|
41 |
if [ "x$MASTER" != x$HOST ]; then |
|
42 |
log_warning_msg "snf-ganeti-eventd should run on the ganeti master only, aborting start (use 'force-start' if you know what you are doing)" |
|
43 |
log_end_msg 0 |
|
44 |
exit 0 |
|
45 |
fi |
|
46 |
} |
|
47 |
|
|
48 |
eventd_start() { |
|
49 |
if start-stop-daemon --start --chuid $SNF_USER --pidfile $SNF_EVENTD_PID_FILE \ |
|
50 |
--exec $DAEMON -- $SNF_EVENTD_OPTS |
|
51 |
then |
|
52 |
rc=0 |
|
53 |
sleep 1 |
|
54 |
if ! kill -0 $(cat $SNF_EVENTD_PID_FILE) >/dev/null 2>&1; then |
|
55 |
log_failure_msg "snf-ganeti-eventd daemon failed to start" |
|
56 |
rc=1 |
|
57 |
fi |
|
58 |
else |
|
59 |
rc=1 |
|
60 |
fi |
|
61 |
if [ $rc -eq 0 ]; then |
|
62 |
log_end_msg 0 |
|
63 |
else |
|
64 |
log_end_msg 1 |
|
65 |
rm -f $SNF_EVENTD_PID_FILE |
|
66 |
fi |
|
67 |
} # eventd_start |
|
68 |
|
|
69 |
case "$1" in |
|
70 |
start) |
|
71 |
if "$SNF_EVENTD_ENABLE"; then |
|
72 |
log_daemon_msg "Starting snf-ganeti-eventd daemon" "snf-ganeti-eventd" |
|
73 |
if [ -s $SNF_EVENTD_PID_FILE ] && kill -0 $(cat $SNF_EVENTD_PID_FILE) >/dev/null 2>&1; then |
|
74 |
log_progress_msg "apparently already running" |
|
75 |
log_end_msg 0 |
|
76 |
exit 0 |
|
77 |
fi |
|
78 |
# Check if we are on the Ganeti master node |
|
79 |
check_ganeti_master |
|
80 |
eventd_start |
|
81 |
else |
|
82 |
if [ -s "$SNF_EVENTD_DEFAULTS" ]; then |
|
83 |
[ "$VERBOSE" != no ] && log_warning_msg "snf-ganeti-eventd daemon not enabled in $SNF_EVENTD_DEFAULTS, not starting..." |
|
84 |
fi |
|
85 |
fi |
|
86 |
;; |
|
87 |
force-start) |
|
88 |
if "$SNF_EVENTD_ENABLE"; then |
|
89 |
log_daemon_msg "Starting snf-ganeti-eventd daemon" "snf-ganeti-eventd" |
|
90 |
else |
|
91 |
if [ -s "$SNF_EVENTD_DEFAULTS" ]; then |
|
92 |
[ "$VERBOSE" != no ] && log_warning_msg "snf-ganeti-eventd daemon not enabled in $SNF_EVENTD_DEFAULTS, starting anyway" |
|
93 |
fi |
|
94 |
fi |
|
95 |
|
|
96 |
if [ -s $SNF_EVENTD_PID_FILE ] && kill -0 $(cat $SNF_EVENTD_PID_FILE) >/dev/null 2>&1; then |
|
97 |
log_progress_msg "apparently already running" |
|
98 |
log_end_msg 0 |
|
99 |
exit 0 |
|
100 |
fi |
|
101 |
eventd_start |
|
102 |
;; |
|
103 |
stop) |
|
104 |
log_daemon_msg "Stopping snf-ganeti-eventd daemon" "snf-ganeti-eventd" |
|
105 |
start-stop-daemon --stop --quiet --oknodo --pidfile $SNF_EVENTD_PID_FILE |
|
106 |
log_end_msg $? |
|
107 |
rm -f $SNF_EVENTD_PID_FILE |
|
108 |
;; |
|
109 |
restart) |
|
110 |
set +e |
|
111 |
if $SNF_EVENTD_ENABLE; then |
|
112 |
log_daemon_msg "Restarting snf-ganeti-eventd daemon" "snf-ganeti-eventd" |
|
113 |
if [ -s $SNF_EVENTD_PID_FILE ] && kill -0 $(cat $SNF_EVENTD_PID_FILE) >/dev/null 2>&1; then |
|
114 |
start-stop-daemon --stop --quiet --oknodo --pidfile $SNF_EVENTD_PID_FILE || true |
|
115 |
sleep 1 |
|
116 |
else |
|
117 |
log_warning_msg "snf-ganeti-eventd daemon not running, attempting to start." |
|
118 |
rm -f $SNF_EVENTD_PID_FILE |
|
119 |
fi |
|
120 |
# Check if we are on the Ganeti master node, before starting |
|
121 |
check_ganeti_master |
|
122 |
eventd_start |
|
123 |
else |
|
124 |
if [ -s "$SNF_EVENTD_DEFAULTS" ]; then |
|
125 |
[ "$VERBOSE" != no ] && log_warning_msg "snf-ganeti-eventd daemon not enabled in $SNF_EVENTD_DEFAULTS, not starting..." |
|
126 |
fi |
|
127 |
fi |
|
128 |
;; |
|
129 |
|
|
130 |
status) |
|
131 |
status_of_proc -p $SNF_EVENTD_PID_FILE "$DAEMON" ganeti-eventd |
|
132 |
exit $? # notreached due to set -e |
|
133 |
;; |
|
134 |
*) |
|
135 |
echo "Usage: /etc/init.d/snf-ganeti-eventd {start|stop|restart|force-start|status}" |
|
136 |
exit 1 |
|
137 |
esac |
|
138 |
|
|
139 |
exit 0 |
b/debian/snf-pithos-app.dirs | ||
---|---|---|
1 |
etc/synnefo |
b/debian/snf-pithos-app.install | ||
---|---|---|
1 |
snf-pithos-app/conf/* etc/synnefo |
b/debian/snf-pithos-backend.dirs | ||
---|---|---|
1 |
usr/share/synnefo |
|
2 |
usr/share/synnefo/pithos |
|
3 |
usr/share/synnefo/pithos/data |
b/debian/snf-pithos-backend.install | ||
---|---|---|
1 |
# this package provides the synnefo namespace __init__.py |
|
2 |
snf-pithos-backend/pithos/__init__.py usr/lib/python2.6/dist-packages/pithos/ |
b/debian/snf-tools.dirs | ||
---|---|---|
1 |
/var/log/burnin/ |
b/debian/snf-webproject.dirs | ||
---|---|---|
1 |
etc/synnefo |
b/debian/snf-webproject.install | ||
---|---|---|
1 |
snf-webproject/conf/* etc/synnefo |
b/debian/source/format | ||
---|---|---|
1 |
3.0 (quilt) |
Also available in: Unified diff