skyview/debian/lib/systemd/system/skyview-adsb.service
Ole-Morten Duesund d7e0a8ee68 fix: Update systemd services to use skyview-adsb user consistently
- Change User and Group from 'skyview' to 'skyview-adsb' in service files
- Update ReadWritePaths in database update service accordingly
- Add external data source configuration to example config

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-31 19:39:23 +02:00

50 lines
No EOL
1.1 KiB
Desktop File

[Unit]
Description=SkyView Multi-Source ADS-B Aircraft Tracker
Documentation=https://github.com/skyview/skyview
After=network.target
Wants=network.target
[Service]
Type=simple
User=skyview-adsb
Group=skyview-adsb
# Update database before starting main service
ExecStartPre=/usr/bin/skyview-data -config /etc/skyview-adsb/config.json update
TimeoutStartSec=300
ExecStart=/usr/bin/skyview -config /etc/skyview-adsb/config.json
WorkingDirectory=/var/lib/skyview-adsb
StandardOutput=journal
StandardError=journal
SyslogIdentifier=skyview-adsb
Restart=always
RestartSec=5
# Security settings
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true
RestrictSUIDSGID=true
RemoveIPC=true
RestrictNamespaces=true
# Allow network access
PrivateNetwork=false
# Allow writing to log directory
ReadWritePaths=/var/log/skyview-adsb
# Capabilities
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target