-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdroneops.service
More file actions
33 lines (31 loc) · 1.03 KB
/
droneops.service
File metadata and controls
33 lines (31 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# DroneOpsCommand — Docker Compose auto-start on boot
#
# Starts the full stack when the server boots.
# All containers have healthchecks and restart:unless-stopped
# so individual crashes auto-recover without systemd intervention.
#
# Install via: ./setup-server.sh
# Logs: journalctl -u droneops -f
# Control: sudo systemctl [start|stop|restart|status] droneops
#
[Unit]
Description=DroneOpsCommand — Drone Operations Management Platform
Documentation=https://github.com/BigBill1418/DroneOpsCommand
After=docker.service network-online.target
Requires=docker.service
Wants=network-online.target
[Service]
Type=oneshot
RemainAfterExit=yes
# __INSTALL_DIR__ is replaced by setup-server.sh during install
WorkingDirectory=__INSTALL_DIR__
ExecStart=/usr/bin/docker compose up -d
ExecStop=/usr/bin/docker compose down
ExecReload=/usr/bin/docker compose restart
# Give containers up to 180s to start (Ollama model load can be slow on first boot)
TimeoutStartSec=180
TimeoutStopSec=60
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.target