|
|
@@ -4,12 +4,14 @@ After=graphical.target
|
|
|
|
|
|
[Service]
|
|
|
Type=simple
|
|
|
-ExecStart=/home/forlinx/monitor/run.sh
|
|
|
+WorkingDirectory=/userdata/workspace/monitor
|
|
|
+ExecStart=bash run.sh
|
|
|
+SyslogIdentifier=monitor
|
|
|
Restart=always
|
|
|
RestartSec=3
|
|
|
User=forlinx
|
|
|
Environment=DISPLAY=:0
|
|
|
-Environment=XAUTHORITY=/home/forlinx/.Xauthority
|
|
|
+# Environment=XAUTHORITY=/home/forlinx/.Xauthority
|
|
|
|
|
|
# 如果需要日志
|
|
|
StandardOutput=journal
|