Skip to content

Instantly share code, notes, and snippets.

@sam210723
Last active July 18, 2020 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sam210723/77dca2c813753c63f5d6863e9c28402a to your computer and use it in GitHub Desktop.
Save sam210723/77dca2c813753c63f5d6863e9c28402a to your computer and use it in GitHub Desktop.
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