add pidfile

This commit is contained in:
wassname
2018-12-27 12:08:42 +08:00
parent 3afa3b6ecc
commit 4c1bec3f25
+2 -1
View File
@@ -7,9 +7,10 @@ After=display-manager.service
ExecStart=/bin/bash /opt/thinkpad-l380-yoga-scripts/tablet/tablet-mode.sh
KillMode=process
Environment="DISPLAY=:0"
Type=forking
Type=simple
Restart=always
RestartSec=5
PIDFile=/run/systemd/yoga-tablet-mode
[Install]
WantedBy=multi-user.target