Debian Codegraph @

doc/modules/guide/pages/startup.adoc

raw
1 [[startup]]
2 = Start up
3
4 Cockpit's `+cockpit-ws+` component is what the browser connects to and
5 it typically starts on demand via
6 https://www.freedesktop.org/wiki/Software/systemd/[`+systemd+`] socket
7 activation.
8
9 The actual `+cockpit.service+` and `+cockpit-ws+` process will start on
10 demand when a browser accesses the `+cockpit.socket+`,
11 xref:listen.adoc[usually on port 9090]. Once a user logs in then a
12 `+cockpit-bridge+` process will be started in a Linux user login
13 session.
14
15 Only systems that you connect to with your browser need to have the
16 `+cockpit.socket+` enabled. For systems that you add through host
17 switcher the bridge is started via SSH on demand.
18
19 [[startup-shutdown]]
20 == Process exit
21
22 The `+cockpit-bridge+` process will exit when the user logs out. In
23 addition, after 10 minutes of inactivity, the `+cockpit-ws+` process
24 will exit on its own. The browser will automatically disconnect if it
25 fails to hear from the `+cockpit-ws+` process for 30 seconds.
26
27 [[startup-boot]]
28 == Boot start up
29
30 To make Cockpit available by default after system boot the
31 `+cockpit.socket+` needs to be enabled:
32
33 ....
34 $ sudo systemctl enable cockpit.socket
35 ....
36
37 If you wish to not have Cockpit available by default via a browser, then
38 the `+cockpit.socket+` should be disabled:
39
40 ....
41 $ sudo systemctl disable cockpit.socket
42 ....