-
Notifications
You must be signed in to change notification settings - Fork 227
/
Copy pathstartup.html
67 lines (67 loc) · 3.74 KB
/
startup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
layout: guide
---
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Start up</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="Cockpit Guide">
<link rel="up" href="guide.html" title="Part I. Deployment Guide">
<link rel="prev" href="listen.html" title="TCP Port and Address">
<link rel="next" href="multi-host.html" title="Managing multiple hosts at the same time">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="listen.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="guide.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Cockpit Guide</th>
<td><a accesskey="n" href="multi-host.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="chapter">
<div class="titlepage"><div><div><h2 class="title">
<a name="startup"></a>Start up</h2></div></div></div>
<div class="toc"><dl class="toc">
<dt><span class="section"><a href="startup.html#startup-shutdown">Process exit</a></span></dt>
<dt><span class="section"><a href="startup.html#startup-boot">Boot start up</a></span></dt>
</dl></div>
<p>Cockpit's <code class="code">cockpit-ws</code> component is what the browser connects to
and it typically starts on demand via
<a class="ulink" href="https://www.freedesktop.org/wiki/Software/systemd/" target="_top"><code class="code">systemd</code></a>
socket activation.</p>
<p>The actual <code class="code">cockpit.service</code> and <code class="code">cockpit-ws</code> process will start on
demand when a browser accesses the <code class="code">cockpit.socket</code>,
<a class="link" href="listen.html" title="TCP Port and Address">usually on port 9090</a>. Once a user logs in then
a <code class="code">cockpit-bridge</code> process will be started in a Linux user login session.</p>
<p>Only systems that you connect to with your browser need to have the <code class="code">cockpit.socket</code>
enabled. For systems that you add through host switcher the bridge is started
via SSH on demand.</p>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="startup-shutdown"></a>Process exit</h2></div></div></div>
<p>The <code class="code">cockpit-bridge</code> process will exit when the user logs out. In addition,
after 10 minutes of inactivity, the <code class="code">cockpit-ws</code> process will exit on its own.
The browser will automatically disconnect if it fails to hear from the
<code class="code">cockpit-ws</code> process for 30 seconds.</p>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="startup-boot"></a>Boot start up</h2></div></div></div>
<p>To make Cockpit available by default after system boot the <code class="code">cockpit.socket</code>
needs to be enabled:</p>
<pre class="programlisting">
$ sudo systemctl enable cockpit.socket
</pre>
<p>If you wish to not have Cockpit available by default via a browser, then the
<code class="code">cockpit.socket</code> should be disabled:</p>
<pre class="programlisting">
$ sudo systemctl disable cockpit.socket
</pre>
</div>
</div>
<div class="footer"><hr></div>
</body>
</html>