Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/conmux/files: conmux-registry.confd conmux-registry.initd conmux.initd conmux.confd
Date: Tue, 29 Oct 2013 21:13:06
Message-Id: 20131029211259.193EC20047@flycatcher.gentoo.org
1 hwoarang 13/10/29 21:12:59
2
3 Added: conmux-registry.confd conmux-registry.initd
4 conmux.initd conmux.confd
5 Log:
6 Initial commit for the conmux console multiplexor
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)
9
10 Revision Changes Path
11 1.1 app-misc/conmux/files/conmux-registry.confd
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/conmux/files/conmux-registry.confd?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/conmux/files/conmux-registry.confd?rev=1.1&content-type=text/plain
15
16 Index: conmux-registry.confd
17 ===================================================================
18 # Port for Registry listener
19 CONMAX_REGISTRY_PORT="63000"
20 # Log file
21 CONMAX_REGISTRY_LOG="/var/log/conmux-registry.log"
22
23
24
25 1.1 app-misc/conmux/files/conmux-registry.initd
26
27 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/conmux/files/conmux-registry.initd?rev=1.1&view=markup
28 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/conmux/files/conmux-registry.initd?rev=1.1&content-type=text/plain
29
30 Index: conmux-registry.initd
31 ===================================================================
32 #!/sbin/runscript
33 # Copyright 1999-2013 Gentoo Foundation
34 # Distributed under the terms of the GNU General Public License v2
35
36 checkconfig() {
37 # Set sane defaults
38 if [[ -z ${CONMUX_REGISTRY_PORT} ]]; then
39 CONMUX_REGISTRY_PORT="63000"
40 fi
41 if [[ -z ${CONMUX_REGISTRY_LOG} ]]; then
42 CONMUX_REGISTRY_LOG="/var/log/conmux-registry.log"
43 fi
44 }
45
46 start() {
47 checkconfig
48 ebegin "Starting conmux daemon"
49 touch ${CONMUX_REGISTRY_LOG} ${CONMUX_REGISTRY_FILE}
50 start-stop-daemon -b --start -p /run/conmux-registry.pid \
51 --exec /usr/sbin/conmux-registry \
52 ${CONMUX_REGISTRY_PORT} ${CONMUX_REGISTRY_FILE}
53 }
54
55 stop() {
56 ebegin "Stopping conmux daemon"
57 start-stop-daemon --stop --pidfile /run/conmux-registry.pid
58 eend $?
59 }
60
61
62
63 1.1 app-misc/conmux/files/conmux.initd
64
65 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/conmux/files/conmux.initd?rev=1.1&view=markup
66 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/conmux/files/conmux.initd?rev=1.1&content-type=text/plain
67
68 Index: conmux.initd
69 ===================================================================
70 #!/sbin/runscript
71 # Copyright 1999-2013 Gentoo Foundation
72 # Distributed under the terms of the GNU General Public License v2
73
74 checkconfig() {
75 if [[ ! -f ${CONMUX_CONFIG} ]]; then
76 eerror ""
77 eerror "No conmux configuration file was found!"
78 eerror "Please read the conmux README file."
79 eerror ""
80 return 1
81 fi
82 # Sane default
83 if [[ -z ${CONMUX_LOG} ]]; then
84 CONMUX_LOG="/var/log/conmux.log"
85 fi
86 return 0
87 }
88
89 start() {
90 checkconfig || exit 1
91 ebegin "Starting CONMUX daemon"
92 start-stop-daemon -b --start -1 ${CONMUX_LOG} \
93 -2 ${CONMUX_LOG} -p /run/conmux.pid \
94 --exec /usr/sbin/conmux -- ${CONMUX_CONFIG}
95 }
96
97 stop() {
98 ebegin "Stopping CONMUX daemon"
99 start-stop-daemon --stop --pidfile /run/conmux.pid
100 eend $?
101 }
102
103
104
105 1.1 app-misc/conmux/files/conmux.confd
106
107 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/conmux/files/conmux.confd?rev=1.1&view=markup
108 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/conmux/files/conmux.confd?rev=1.1&content-type=text/plain
109
110 Index: conmux.confd
111 ===================================================================
112 # Configuration file
113 # It should point to a valid device configuration file
114 # eg CONMUX_CONFIG="/etc/conmux/deviceA.cf
115 #
116 # See https://github.com/autotest/autotest/wiki/Conmux-Howto
117 # and https://github.com/autotest/autotest/wiki/Conmux-OriginalDocumentation
118 # for examples
119 #
120 # Default value is empty so the init script will fail and force you
121 # to create a new config
122 #
123 CONMUX_CONFIG=""
124 # Log file
125 CONMUX_LOG="/var/log/conmux.log"