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]
|
||||
Description=DWARF Mini telescope daemon (persistent WS + RTSP + visual odometry)
|
||||
Description=DWARF telescope daemon (persistent WS + RTSP + visual odometry)
|
||||
After=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
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
# Logs go to journald (Captured by systemd).
|
||||
TimeoutStopSec=10
|
||||
SyslogIdentifier=dwarfctl
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user