浏览代码

xsession management

timer
父节点
当前提交
9861a0f6cc
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      templates/i3/i3wm.service.j2
  2. +1
    -1
      templates/vnc/vncserver.service.j2

+ 1
- 1
templates/i3/i3wm.service.j2 查看文件

@@ -3,9 +3,9 @@ Description=i3 Window Manager
PartOf=graphical-session.target

[Service]
Type=exec
ExecStart=i3
ExecStopPost=/bin/systemctl --user stop graphical-session.target
Restart=on-failure

[Install]
RequiredBy=xsession.target

+ 1
- 1
templates/vnc/vncserver.service.j2 查看文件

@@ -20,7 +20,7 @@ After=syslog.target network.target

[Service]
Type=forking
ExecStart=/usr/bin/vncserver %i
ExecStart=/usr/bin/vncserver -autokill %i
ExecStop=/usr/bin/vncserver -kill %i

[Install]