blade-sauce_labs_plugin 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22a46cbac58623726ac3afd141455b82784352b8
4
- data.tar.gz: 2fa8257a14a638c2e54693dda4f4d3c1bdfec269
3
+ metadata.gz: 340db326f3449029f5f2afe12dd8be8a7d1ba454
4
+ data.tar.gz: 7492c523f59f9b1ab001327561cdb4b122cea543
5
5
  SHA512:
6
- metadata.gz: 5fac9e05d635f7616ecf176adf166eb29d837376a47c72d8c26cbf181b3115d5cdba99f8b2042525946310b7dce89de5d942da5ffcf9747f9e47cb7c7a9e3252
7
- data.tar.gz: d52460395a4d0ef296bf5530ccf615d2d7af07afd162caa28752020076afbb32f94380b39a3dc985446089019743cb58a1d588f420f47f4d4cf2ce647eb925cf
6
+ metadata.gz: d2a708f7dfc0283af96dbd17876afb74680c4b0fa659a52af6096ce078aca949ff2bb610ede493115e1c6140cfe525e8ea812362648f752f4d284bac1ce9b4bc
7
+ data.tar.gz: 08a1ede5aad23e5d20ae1ef19438d91dee91daea941a39259c97dcd6183da976e13f7bd2f1a785656be2069cbdaaab3d760c81c23c80d77b9d251555379cce3f
@@ -1,5 +1,5 @@
1
1
  module Blade
2
2
  module SauceLabsPlugin
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.2"
4
4
  end
5
5
  end
@@ -0,0 +1,314 @@
1
+
2
+
3
+ Sauce Connect Open Source Software Declaration
4
+ =====
5
+
6
+
7
+ Sauce Connect Proxy Server software incorporates the following open source components and associated licenses:
8
+
9
+
10
+ C-ares
11
+ =====
12
+ Copyright © 1998 by the Massachusetts Institute of Technology.
13
+
14
+ Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of M.I.T. not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. M.I.T. makes no representations about the suitability of this software for any
15
+ purpose. It is provided "as is" without express or implied warranty.
16
+
17
+
18
+ Curl
19
+ =====
20
+ COPYRIGHT AND PERMISSION NOTICE
21
+ Copyright (c) 1996 - 2016, Daniel Stenberg, daniel@haxx.se, and many contributors, see the THANKS file. All rights reserved.
22
+ Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
+ Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder.
25
+
26
+
27
+ Jannson
28
+ =====
29
+ Copyright (c) 2009-2014 Petri Lehtinen <petri@digip.org>
30
+
31
+ Permission is hereby granted, free of charge, to any person obtaining a copy
32
+ of this software and associated documentation files (the "Software"), to deal
33
+ in the Software without restriction, including without limitation the rights
34
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35
+ copies of the Software, and to permit persons to whom the Software is
36
+ furnished to do so, subject to the following conditions:
37
+
38
+ The above copyright notice and this permission notice shall be included in
39
+ all copies or substantial portions of the Software.
40
+
41
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
44
+
45
+
46
+ Libevent
47
+ =====
48
+ Libevent is available for use under the following license, commonly known
49
+ as the 3-clause (or "modified") BSD license:
50
+
51
+ Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
52
+ Copyright (c) 2007-2010 Niels Provos and Nick Mathewson
53
+
54
+ Redistribution and use in source and binary forms, with or without
55
+ modification, are permitted provided that the following conditions
56
+ are met:
57
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
58
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
59
+ 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
60
+
61
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
62
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
63
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
64
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
65
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
66
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
67
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
68
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
69
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
70
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
71
+
72
+ Portions of Libevent are based on works by others, also made available by
73
+ them under the three-clause BSD license above. The copyright notices are
74
+ available in the corresponding source files; the license is as above. Here's
75
+ a list:
76
+
77
+ log.c:
78
+ Copyright (c) 2000 Dug Song <dugsong@monkey.org>
79
+ Copyright (c) 1993 The Regents of the University of California.
80
+
81
+ strlcpy.c:
82
+ Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
83
+
84
+ win32select.c:
85
+ Copyright (c) 2003 Michael A. Davis <mike@datanerds.net>
86
+
87
+ evport.c:
88
+ Copyright (c) 2007 Sun Microsystems
89
+
90
+ ht-internal.h:
91
+ Copyright (c) 2002 Christopher Clark
92
+
93
+ minheap-internal.h:
94
+ Copyright (c) 2006 Maxim Yegorushkin <maxim.yegorushkin@gmail.com>
95
+
96
+ The arc4module is available under the following, sometimes called the
97
+ "OpenBSD" license:
98
+
99
+ Copyright (c) 1996, David Mazieres <dm@uun.org>
100
+ Copyright (c) 2008, Damien Miller <djm@openbsd.org>
101
+
102
+ Permission to use, copy, modify, and distribute this software for any
103
+ purpose with or without fee is hereby granted, provided that the above
104
+ copyright notice and this permission notice appear in all copies.
105
+
106
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
107
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
108
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
109
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
110
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
111
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
112
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
113
+
114
+
115
+ Libpac
116
+ =====
117
+ Copyright © 2014 Sauce Labs Inc.
118
+
119
+ Licensed under the Apache License, Version 2.0 (the "License");
120
+ you may not use this file except in compliance with the License.
121
+ You may obtain a copy of the License at
122
+
123
+ http://www.apache.org/licenses/LICENSE-2.0
124
+
125
+ Unless required by applicable law or agreed to in writing, software
126
+ distributed under the License is distributed on an "AS IS" BASIS,
127
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
128
+ See the License for the specific language governing permissions and
129
+ limitations under the License.
130
+
131
+ Winpthreads
132
+ =====
133
+ Copyright (c) 2011 mingw-w64 project
134
+
135
+ Permission is hereby granted, free of charge, to any person obtaining a
136
+ copy of this software and associated documentation files (the "Software"),
137
+ to deal in the Software without restriction, including without limitation
138
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
139
+ and/or sell copies of the Software, and to permit persons to whom the
140
+ Software is furnished to do so, subject to the following conditions:
141
+
142
+ The above copyright notice and this permission notice shall be included in
143
+ all copies or substantial portions of the Software.
144
+
145
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
146
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
147
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
148
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
149
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
150
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
151
+ DEALINGS IN THE SOFTWARE.
152
+
153
+
154
+ /*
155
+ * Parts of this library are derived by:
156
+ *
157
+ * Posix Threads library for Microsoft Windows
158
+ *
159
+ * Use at own risk, there is no implied warranty to this code.
160
+ * It uses undocumented features of Microsoft Windows that can change
161
+ * at any time in the future.
162
+ *
163
+ * (C) 2010 Lockless Inc.
164
+ * All rights reserved.
165
+ *
166
+ * Redistribution and use in source and binary forms, with or without modification,
167
+ * are permitted provided that the following conditions are met:
168
+ *
169
+ *
170
+ * * Redistributions of source code must retain the above copyright notice,
171
+ * this list of conditions and the following disclaimer.
172
+ * * Redistributions in binary form must reproduce the above copyright notice,
173
+ * this list of conditions and the following disclaimer in the documentation
174
+ * and/or other materials provided with the distribution.
175
+ * * Neither the name of Lockless Inc. nor the names of its contributors may be
176
+ * used to endorse or promote products derived from this software without
177
+ * specific prior written permission.
178
+ *
179
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AN
180
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
181
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
182
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
183
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
184
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
185
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
186
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
187
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
188
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
189
+ */
190
+
191
+
192
+ OpenSSL
193
+ =====
194
+
195
+ The OpenSSL toolkit stays under a dual license, i.e. both the conditions of
196
+ the OpenSSL License and the original SSLeay license apply to the toolkit.
197
+ See below for the actual license texts.
198
+
199
+ OpenSSL License
200
+ ---------------
201
+
202
+ /* ====================================================================
203
+ * Copyright (c) 1998-2016 The OpenSSL Project. All rights reserved.
204
+ *
205
+ * Redistribution and use in source and binary forms, with or without
206
+ * modification, are permitted provided that the following conditions
207
+ * are met:
208
+ *
209
+ * 1. Redistributions of source code must retain the above copyright
210
+ * notice, this list of conditions and the following disclaimer.
211
+ *
212
+ * 2. Redistributions in binary form must reproduce the above copyright
213
+ * notice, this list of conditions and the following disclaimer in
214
+ * the documentation and/or other materials provided with the
215
+ * distribution.
216
+ *
217
+ * 3. All advertising materials mentioning features or use of this
218
+ * software must display the following acknowledgment:
219
+ * "This product includes software developed by the OpenSSL Project
220
+ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
221
+ *
222
+ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
223
+ * endorse or promote products derived from this software without
224
+ * prior written permission. For written permission, please contact
225
+ * openssl-core@openssl.org.
226
+ *
227
+ * 5. Products derived from this software may not be called "OpenSSL"
228
+ * nor may "OpenSSL" appear in their names without prior written
229
+ * permission of the OpenSSL Project.
230
+ *
231
+ * 6. Redistributions of any form whatsoever must retain the following
232
+ * acknowledgment:
233
+ * "This product includes software developed by the OpenSSL Project
234
+ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
235
+ *
236
+ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
237
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
238
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
239
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
240
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
241
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
242
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
243
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
244
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
245
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
246
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
247
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
248
+ * ====================================================================
249
+ *
250
+ * This product includes cryptographic software written by Eric Young
251
+ * (eay@cryptsoft.com). This product includes software written by Tim
252
+ * Hudson (tjh@cryptsoft.com).
253
+ *
254
+ */
255
+
256
+ Original SSLeay License
257
+ -----------------------
258
+
259
+ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
260
+ * All rights reserved.
261
+ *
262
+ * This package is an SSL implementation written
263
+ * by Eric Young (eay@cryptsoft.com).
264
+ * The implementation was written so as to conform with Netscapes SSL.
265
+ *
266
+ * This library is free for commercial and non-commercial use as long as
267
+ * the following conditions are aheared to. The following conditions
268
+ * apply to all code found in this distribution, be it the RC4, RSA,
269
+ * lhash, DES, etc., code; not just the SSL code. The SSL documentation
270
+ * included with this distribution is covered by the same copyright terms
271
+ * except that the holder is Tim Hudson (tjh@cryptsoft.com).
272
+ *
273
+ * Copyright remains Eric Young's, and as such any Copyright notices in
274
+ * the code are not to be removed.
275
+ * If this package is used in a product, Eric Young should be given attribution
276
+ * as the author of the parts of the library used.
277
+ * This can be in the form of a textual message at program startup or
278
+ * in documentation (online or textual) provided with the package.
279
+ *
280
+ * Redistribution and use in source and binary forms, with or without
281
+ * modification, are permitted provided that the following conditions
282
+ * are met:
283
+ * 1. Redistributions of source code must retain the copyright
284
+ * notice, this list of conditions and the following disclaimer.
285
+ * 2. Redistributions in binary form must reproduce the above copyright
286
+ * notice, this list of conditions and the following disclaimer in the
287
+ * documentation and/or other materials provided with the distribution.
288
+ * 3. All advertising materials mentioning features or use of this software
289
+ * must display the following acknowledgement:
290
+ * "This product includes cryptographic software written by
291
+ * Eric Young (eay@cryptsoft.com)"
292
+ * The word 'cryptographic' can be left out if the rouines from the library
293
+ * being used are not cryptographic related :-).
294
+ * 4. If you include any Windows specific code (or a derivative thereof) from
295
+ * the apps directory (application code) you must include an acknowledgement:
296
+ * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
297
+ *
298
+ * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
299
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
300
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
301
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
302
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
303
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
304
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
305
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
306
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
307
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
308
+ * SUCH DAMAGE.
309
+ *
310
+ * The licence and distribution terms for any publically available version or
311
+ * derivative of this code cannot be changed. i.e. this code cannot simply be
312
+ * copied and put under another distribution licence
313
+ * [including the GNU Public Licence.]
314
+ */
Binary file
@@ -0,0 +1,83 @@
1
+ Systemd is a system and service manager for Linux that, among other things, can be used to control the starting and stopping of services. For more information check out https://www.freedesktop.org/wiki/Software/systemd/
2
+
3
+ Sauce Connect is a secure tunneling application that allows the Sauce Labs browser cloud to connect to websites you want to test that are hosted on localhost or behind a firewall. For more information check out the Sauce Labs documentation wiki: https://wiki.saucelabs.com/display/DOCS/Sauce+Connect
4
+
5
+ These instructions will show you how to set up systemd with Sauce Connect to manage the starting and stopping of Sauce Connect tunnels.
6
+
7
+ Systemd will automatically start the Sauce Connect service, monitor each client, and tranparently restart the client if the client gets disconnected or a tunnel goes down.
8
+
9
+ Setting Up systemd
10
+ ----------------
11
+
12
+ 1. Copy the files `sc.service` & `sc@.service` to `/etc/systemd/system`.
13
+ 2. Create a directory `sc.service.wants` in `/etc/systemd/system`.
14
+ You'll have to create symbolic links inside this directory to set up new instances of Sauce
15
+ Connect. For example, if you'd like to have two Sauce Connect instances listening on
16
+ port 8000 & 8001:
17
+ ```
18
+ $ cd /etc/systemd/system/
19
+ $ sudo mkdir -p ./sc.service.wants
20
+ $ sudo ln -s /etc/systemd/system/sc@.service ./sc.service.wants/sc@8000.service
21
+ $ sudo ln -s /etc/systemd/system/sc@.service ./sc.service.wants/sc@8001.service
22
+ ```
23
+ 3. Add your Saucelabs credentials to `/etc/systemd/system/sc@.service` in the
24
+ service section like this:
25
+ ```
26
+ Environment=SAUCE_USERNAME=myusername
27
+ Environment=SAUCE_ACCESS_KEY=fd69b0a8-337c-3303-b1bd-xxxxxxxxxxx
28
+ ```
29
+
30
+ Starting and Stopping the Service
31
+ ---------------------
32
+ After you have configured the instances, you can start up the new service:
33
+ ```
34
+ # This is important otherwise systemd won't pick up the new configuration
35
+ $ sudo systemctl daemon-reload
36
+ $ sudo systemctl start sc
37
+ $ sudo systemctl status sc
38
+ ● sc.service - Sauce Connect workers hypervisor
39
+ Loaded: loaded (/etc/systemd/system/sc.service; disabled; vendor preset: enabled)
40
+ Active: active (exited) since Wed 2016-04-06 17:44:37 PDT; 6s ago
41
+ ...
42
+
43
+ $ sudo systemctl status 'sc@*'
44
+ ● sc@8000.service - Sauce Connect worker service on port 8000
45
+ Loaded: loaded (/etc/systemd/system/sc@.service; enabled; vendor preset: enabled)
46
+ Active: active (running) since Wed 2016-04-06 17:44:37 PDT; 23s ago
47
+ ...
48
+ Apr 06 17:44:50 usery-BigFatServerzz sc[6772]: 20160406 174450.926 [06772] Sauce Connect is up, you may start your tests.
49
+ ```
50
+ To stop all the instances:
51
+ ```
52
+ $ sudo systemctl stop sc
53
+ ```
54
+ Managing Individual Instances
55
+ -----------------------------
56
+ You can also manage invididual instance without impacting the other instances by using the syntax `sc@<PORT NUMBER>`. For example, here's how you'd manage the instance listening on port 8000:
57
+ ```
58
+ $ sudo systemctl status 'sc@8000.service'
59
+ ● sc@8000.service - Sauce Connect worker service on port 8000
60
+ Loaded: loaded (/etc/systemd/system/sc@.service; enabled; vendor preset: enabled)
61
+ Active: active (running) since Wed 2016-04-06 17:44:37 PDT; 5min ago
62
+ ...
63
+
64
+
65
+ # This won't affect the other instances
66
+ $ sudo systemctl restart 'sc@8000.service'
67
+
68
+ ```
69
+ Systemd Tips and Tricks
70
+ =====================
71
+
72
+ When working with systemd I recommend making an alias for systemctl to automate
73
+ the configuration reload:
74
+
75
+ function sd() {
76
+ sudo systemctl daemon-reload > /dev/null
77
+ sudo systemctl $@
78
+ }
79
+
80
+ When debugging problems with a unit:
81
+
82
+ $ systemctl status unit
83
+ $ journalctl -xe -u unit
@@ -0,0 +1,16 @@
1
+ #
2
+ # Start & stop Sauce Connect workers
3
+ #
4
+ [Unit]
5
+ Description=Sauce Connect workers hypervisor
6
+ After=network.target
7
+
8
+ [Service]
9
+ Type=oneshot
10
+ RemainAfterExit=yes
11
+ ExecStart=/bin/true
12
+ ExecReload=/bin/true
13
+ WorkingDirectory=/tmp
14
+
15
+ [Install]
16
+ WantedBy=multi-user.target
@@ -0,0 +1,28 @@
1
+ [Unit]
2
+ Description=Sauce Connect worker service on port %i
3
+ PartOf=sc.service
4
+ ReloadPropagatedFrom=sc.service
5
+
6
+ [Service]
7
+ Type=simple
8
+ User=nobody
9
+ Group=nogroup
10
+ WorkingDirectory=/tmp
11
+ LimitNOFILE=8192
12
+ Restart=always
13
+
14
+ # Set those to match your Saucelabs credentials
15
+ Environment=SAUCE_USERNAME=username
16
+ Environment=SAUCE_ACCESS_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
17
+
18
+ ExecStart = /usr/local/bin/sc \
19
+ --logfile - \
20
+ --pidfile "/tmp/sauceconnect_%i.pid" \
21
+ --se-port "%i" \
22
+ --no-remove-colliding-tunnels \
23
+ --wait-tunnel-shutdown
24
+ # Not needed with systemd
25
+ ExecStartPost = /bin/rm -f /tmp/sauceconnect_%i.pid
26
+
27
+ [Install]
28
+ WantedBy=multi-user.target