fix: systemd service WantedBy target and add shutdown timeout
Use multi-user.target instead of default.target, add TimeoutStopSec=10
for clean shutdown, add SyslogIdentifier for journald filtering.
💘 Generated with Crush
Assisted-by: Crush:/models/Qwen3.6-27B-uncensored-heretic-v2-Native-MTP-Preserved-Q4_K_M.gguf
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=DWARF Mini telescope daemon (persistent WS + RTSP + visual odometry)
|
Description=DWARF telescope daemon (persistent WS + RTSP + visual odometry)
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
|
|
||||||
@ -8,9 +8,10 @@ Type=simple
|
|||||||
ExecStart=/usr/local/bin/dwarfctl serve --ip 192.168.88.1 --cam wide --addr 127.0.0.1:7777
|
ExecStart=/usr/local/bin/dwarfctl serve --ip 192.168.88.1 --cam wide --addr 127.0.0.1:7777
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=3
|
RestartSec=3
|
||||||
# Logs go to journald (Captured by systemd).
|
TimeoutStopSec=10
|
||||||
|
SyslogIdentifier=dwarfctl
|
||||||
StandardOutput=journal
|
StandardOutput=journal
|
||||||
StandardError=journal
|
StandardError=journal
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user