diff --git a/systemd/yoga-tablet.service b/systemd/yoga-tablet.service index c29d919..fb35ea8 100644 --- a/systemd/yoga-tablet.service +++ b/systemd/yoga-tablet.service @@ -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