-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 893 Bytes
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
[Unit]
Description=proxmox desktop on tty%I
Wants=graphical.target
After=graphical.target systemd-user-sessions.service
Conflicts=getty@tty%i.service
# wait for network
#Wants=network-online.target
#After=network-online.target
[Service]
User=user
WorkingDirectory=~
PAMName=login
Environment=XDG_SESSION_TYPE=x11
TTYPath=/dev/tty%I
StandardInput=tty
UnsetEnvironment=TERM
UtmpIdentifier=tty%I
UtmpMode=user
# this creates /var/log/proxmox-desktop/ directory
LogsDirectory=proxmox-desktop
#StandardOutput=journal
ExecStartPre=+/usr/bin/chvt %I
#Environment=PYCHARM_DEBUG_HOST=192.168.3.201
#Environment=PYCHARM_DEBUG_PORT=6543
ExecStart=/usr/local/bin/proxmox-desktop \
--vt "%i" \
--display ":%i" \
--log-file /var/log/proxmox-desktop/%i.log \
--config /etc/proxmox-desktop/config.ini
#Restart=always
RestartSec=1
KillSignal=SIGKILL
[Install]
WantedBy=graphical.target