Gentoo Archives: gentoo-commits

From: "Matt Thode (prometheanfire)" <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/novnc/files: noVNC.initd noVNC.confd
Date: Fri, 27 Sep 2013 01:40:04
Message-Id: 20130927013957.689CA2004C@flycatcher.gentoo.org
1 prometheanfire 13/09/27 01:39:57
2
3 Added: noVNC.initd noVNC.confd
4 Log:
5 initial commit of novnc for nova
6
7 (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
8
9 Revision Changes Path
10 1.1 www-apps/novnc/files/noVNC.initd
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/novnc/files/noVNC.initd?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/novnc/files/noVNC.initd?rev=1.1&content-type=text/plain
14
15 Index: noVNC.initd
16 ===================================================================
17 #!/sbin/runscript
18 # Copyright 1999-2013 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/www-apps/novnc/files/noVNC.initd,v 1.1 2013/09/27 01:39:57 prometheanfire Exp $
21 #
22 # Author: Cor Cornelisse <corcornelisse@×××××.com>
23
24 depend() {
25 need net
26 }
27
28 checkconfig() {
29 if [ ! -r /etc/conf.d/${SVCNAME} ]; then
30 eerror "No config file found: /etc/conf.d/${SVCNAME}"
31 return 1
32 fi
33 return 0
34 }
35
36
37 start() {
38 checkconfig || return $?
39 . /etc/conf.d/${SVCNAME}
40
41 ebegin "Starting ${SVCNAME}"
42
43 start-stop-daemon --start --quiet --make-pidfile --pidfile \
44 "/var/run/${SVCNAME}.pid" --background \
45 --stdout ${LOG_PATH}/${SVCNAME}.log \
46 --stderr ${LOG_PATH}/${SVCNAME}.err --exec \
47 /opt/noVNC/utils/nova-novncproxy -- \
48 --flagfile=${FLAG_FILE} --cert=${CERT_FILE} \
49 --web ${WEB_ROOT}
50
51
52 eend $? "Failed to start ${SVCNAME}"
53 }
54
55 stop() {
56 checkconfig || return $?
57 . /etc/conf.d/${SVCNAME}
58
59 ebegin "Stopping ${SVCNAME}"
60
61 start-stop-daemon --stop --pidfile "/var/run/${SVCNAME}.pid" \
62 --exec /opt/noVNC/utils/nova-novncproxy
63 eend $? "Failed to stop ${SVCNAME}"
64 }
65
66
67
68
69 1.1 www-apps/novnc/files/noVNC.confd
70
71 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/novnc/files/noVNC.confd?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/novnc/files/noVNC.confd?rev=1.1&content-type=text/plain
73
74 Index: noVNC.confd
75 ===================================================================
76 FLAG_FILE=/etc/nova/nova.conf
77 WEB_ROOT=/opt/noVNC
78 LOG_PATH=/var/log/noVNC
79 CERT_FILE=/opt/noVNC/self.pem