Skip to content

Instantly share code, notes, and snippets.

@sam210723 sam210723/README.md

Last active Jul 18, 2020
Embed
What would you like to do?
Debian systemd service for xrit-rx

Debian systemd service for xrit-rx

  1. Download xrit-rx.service
  2. Edit WorkingDirectory in xrit-rx.service to the location of xrit-rx on your system
  3. Copy xrit-rx.service to /etc/systemd/system (sudo cp xrit-rx.service /etc/systemd/system)
  4. Reload systemd daemons (sudo systemctl daemon-reload)
  5. Start xrit-rx service (sudo systemctl start xrit-rx.service)
  6. Check service is running (systemctl status xrit-rx.service)
  7. Check console output of xrit-rx (sudo journalctl -u xrit-rx.service)
  8. Enable service to run at startup (sudo systemctl enable xrit-rx.service)
# xrit-rx service for systemd
[Unit]
Description=xrit-rx - LRIT/HRIT Downlink Processor
Documentation=https://github.com/sam210723/xrit-rx
Wants=network.target
After=network.target
[Service]
WorkingDirectory=/home/pi/xrit-rx
ExecStart=/usr/bin/python3 xrit-rx.py
StandardOutput=journal
Type=simple
Restart=on-failure
RestartSec=30
Nice=-5
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.