mirror of
https://github.com/kxgx/2.13-Ink-screen-clock.git
synced 2026-03-15 07:03:16 +08:00
更新 raspi_e-Paper.service
This commit is contained in:
@@ -4,12 +4,11 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
# 等待网络完全启动
|
|
||||||
#ExecStartPre=/bin/bash -c 'until ping -c1 baidu.com &>/dev/null; do sleep 1; done'
|
|
||||||
ExecStart=/root/2.13-Ink-screen-clock/bin/start.sh
|
ExecStart=/root/2.13-Ink-screen-clock/bin/start.sh
|
||||||
#ExecStop=/usr/bin/screen -S main_screen -X quit
|
ExecStop=/bin/bash -c "pkill -f /root/2.13-Ink-screen-clock/bin/main.py; pkill -f /root/2.13-Ink-screen-clock/bin/weather.py"
|
||||||
Restart=on-failure
|
WorkingDirectory=/root/2.13-Ink-screen-clock/bin
|
||||||
|
Restart=always
|
||||||
User=root
|
User=root
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user