File: chrome-remote-desktop%40.service

package info (click to toggle)
chromium 138.0.7204.183-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,071,908 kB
  • sloc: cpp: 34,937,088; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,953; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,806; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (37 lines) | stat: -rw-r--r-- 1,678 bytes parent folder | download | duplicates (6)
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
[Unit]
Description=Chrome Remote Desktop instance for %i
After=network.target

[Service]
Type=simple
User=%i
Environment=XDG_SESSION_CLASS=user XDG_SESSION_TYPE=x11
PAMName=chrome-remote-desktop
# Ideally, PAM_TTY would be set to the X display for x11 sessions, but we don't
# yet know what display we'll be using. Leaving it unset has been known to break
# some PAM modules (the pam_systemd documentation explicitly calls out pam_time
# and pam_access, though they appear to have since been fixed) so the below sets
# it to a dummy value. There is some precedence for this, as SSH and cron set
# PAM_TTY to "ssh" and "cron" (respectively) for similar reasons. This also has
# the side effect of making CRD sessions easy to spot in the output of
# loginctl.
#
# Unfortunately, systemd doesn't provide a way to set PAM_TTY explicitly, but it
# will set it to the value of TTYPath, if present. TTYPath must be an absolute
# path, but /dev/ will get stripped off by pam_systemd when it copies the value
# from PAM_TTY to the logind session information. Setting this to a nonexistent
# path seems not to cause issues and long as none of the Standard*= options are
# set to "tty".
TTYPath=/dev/chrome-remote-desktop
ExecStart=/opt/google/chrome-remote-desktop/chrome-remote-desktop --start --new-session
ExecReload=/opt/google/chrome-remote-desktop/chrome-remote-desktop --reload
ExecStop=/opt/google/chrome-remote-desktop/chrome-remote-desktop --stop
# Log output to the journal
StandardOutput=journal
# Use same fd as stdout
StandardError=inherit
# Must be kept in sync with RELAUNCH_EXIT_CODE in linux_me2me_host.py
RestartForceExitStatus=41

[Install]
WantedBy=multi-user.target