File: startup.xml

package info (click to toggle)
cockpit 239-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 67,268 kB
  • sloc: javascript: 245,474; ansic: 72,273; python: 23,634; xml: 6,155; sh: 2,919; makefile: 923; sed: 5
file content (48 lines) | stat: -rw-r--r-- 1,940 bytes parent folder | download | duplicates (4)
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
<?xml version="1.0"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
	"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
<chapter id="startup">
  <title>Start up</title>

  <para>Cockpit's <code>cockpit-ws</code> component is what the browser connects to
    and it typically starts on demand via
    <ulink url="https://www.freedesktop.org/wiki/Software/systemd/"><code>systemd</code></ulink>
    socket activation.</para>

  <para>The actual <code>cockpit.service</code> and <code>cockpit-ws</code> process will start on
    demand when a browser accesses the <code>cockpit.socket</code>,
    <link linkend="listen">usually on port 9090</link>. Once a user logs in then
    a <code>cockpit-bridge</code> process will be started in a Linux user login session.</para>

  <para>Only systems that you connect to with your browser need to have the <code>cockpit.socket</code>
    enabled. For systems that you add through host switcher the bridge is started
    via SSH on demand.</para>

  <section id="startup-shutdown">
    <title>Process exit</title>
    <para>The <code>cockpit-bridge</code> process will exit when the user logs out. In addition,
      after 10 minutes of inactivity, the <code>cockpit-ws</code> process will exit on its own.
      The browser will automatically disconnect if it fails to hear from the
      <code>cockpit-ws</code> process for 30 seconds.</para>
  </section>

  <section id="startup-boot">
    <title>Boot start up</title>

    <para>To make Cockpit available by default after system boot the <code>cockpit.socket</code>
      needs to be enabled:</para>

<programlisting>
$ sudo systemctl enable cockpit.socket
</programlisting>

    <para>If you wish to not have Cockpit available by default via a browser, then the
      <code>cockpit.socket</code> should be disabled:</para>

<programlisting>
$ sudo systemctl disable cockpit.socket
</programlisting>

  </section>

</chapter>