You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ADN-DMR-Peer-Server/examples/systemd/adn-server.service

32 lines
967 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# ADN DMR Peer Server – systemd unit (bridge, integrated PROXY, reports)
#
# Copy:
# sudo cp /opt/adn-server/examples/systemd/adn-server.service /etc/systemd/system/
# Edit User / paths if needed, then:
# sudo systemctl daemon-reload
# sudo systemctl enable --now adn-server
#
# Config: adn-server.yaml (copy from adn-server.example.yaml; not committed).
# Reload YAML: systemctl reload adn-server (SIGHUP via ExecReload — not logrotate)
# Logrotate: kill -USR2 $(systemctl show adn-server -p MainPID --value)
[Unit]
Description=ADN DMR Peer Server
After=network-online.target
Wants=network-online.target
[Service]
User=adn
Type=simple
Restart=always
RestartSec=3
SyslogIdentifier=adn-dmr-server
WorkingDirectory=/opt/adn-server
ExecStart=/opt/.pyenv/versions/3.11.8/bin/python3 /opt/adn-server/adn-server.py -c /opt/adn-server/adn-server.yaml
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGTERM
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target

Powered by TurnKey Linux.