Gentoo Archives: gentoo-commits

From: "Tony Vroon (chainsaw)" <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/g15composer/files: g15composer-3.2.initd g15composer-3.2.confd
Date: Thu, 21 Feb 2008 17:14:17
Message-Id: E1JSEzv-0000fn-7t@stork.gentoo.org
1 chainsaw 08/02/21 17:14:15
2
3 Added: g15composer-3.2.initd g15composer-3.2.confd
4 Log:
5 Version bump as requested by Efimov Vadim <evadim@××××××.ru>, closes bug #208775.
6 (Portage version: 2.1.4.4)
7
8 Revision Changes Path
9 1.1 app-misc/g15composer/files/g15composer-3.2.initd
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15composer/files/g15composer-3.2.initd?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15composer/files/g15composer-3.2.initd?rev=1.1&content-type=text/plain
13
14 Index: g15composer-3.2.initd
15 ===================================================================
16 #!/sbin/runscript
17 # Copyright 1999-2007 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19 # $Header: /var/cvsroot/gentoo-x86/app-misc/g15composer/files/g15composer-3.2.initd,v 1.1 2008/02/21 17:14:14 chainsaw Exp $
20
21 PIDFILE=/var/run/${SVCNAME}.pid
22
23 depend() {
24 need g15daemon
25 }
26
27 start() {
28 ebegin "Starting ${SVCNAME}"
29
30 if [ -z "${FIFO_USER}" -o -z "${FIFO_GROUP}" ] ; then
31 eerror "Please set the FIFO_USER and FIFO_GROUP variables in /etc/conf.d/${SVCNAME}"
32 eend 1
33 return 1
34 fi
35 if [ -e "${CONTROL_FIFO}" -a ! -p "${CONTROL_FIFO}" ] ; then
36 eerror "${CONTROL_FIFO} exists and is not a FIFO. Please remove."
37 eend 1
38 return 1
39 fi
40 if [ ! -p "${CONTROL_FIFO}" ] ; then
41 einfo "Creating FIFO at ${CONTROL_FIFO}"
42 mkfifo -m660 "${CONTROL_FIFO}"
43 else
44 einfo "Reusing FIFO at ${CONTROL_FIFO}"
45 fi
46
47 chown ${FIFO_USER} "${CONTROL_FIFO}"
48 chgrp ${FIFO_GROUP} "${CONTROL_FIFO}"
49 start-stop-daemon --start --background --pidfile ${PIDFILE} --make-pidfile --exec \
50 /usr/bin/g15composer -- -b -u "${FIFO_USER}" -g "${FIFO_GROUP}" "${CONTROL_FIFO}"
51 eend $?
52 }
53
54 stop() {
55 ebegin "Stoping ${SVCNAME}"
56 start-stop-daemon --stop --pidfile ${PIDFILE} --name g15composer
57 if [ -p "${CONTROL_FIFO}" ] ; then
58 einfo "Removing FIFO at ${CONTROL_FIFO}"
59 rm -f "${CONTROL_FIFO}"
60 else
61 ewarn "FIFO at ${CONTROL_FIFO} was lost"
62 fi
63 eend $?
64 }
65
66
67
68 1.1 app-misc/g15composer/files/g15composer-3.2.confd
69
70 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15composer/files/g15composer-3.2.confd?rev=1.1&view=markup
71 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15composer/files/g15composer-3.2.confd?rev=1.1&content-type=text/plain
72
73 Index: g15composer-3.2.confd
74 ===================================================================
75 # /etc/conf.d/g15composer: Configuration for the g15composer
76
77 # The CONTROL_FIFO is the name of the FIFO that g15composer listens to.
78 # It does not create a screen on the display, but allows programs to
79 # create their own non-virtual screens.
80 # Please make sure the file specified does not exist.
81 CONTROL_FIFO="/var/run/g15composer"
82
83 # Set the user who owns the CONTROL_FIFO.
84 # As this is also the user as whom g15composer is run,
85 # it has to be someone who can create further message channels
86 # This should be the user who runs the LCD clients
87 FIFO_USER=
88
89 # Set the grop which owns the CONTROL_FIFO.
90 # The users who want to display screens on the LCD need to be in this group.
91 FIFO_GROUP=users
92
93
94
95 --
96 gentoo-commits@l.g.o mailing list