- Download
xrit-rx.service
- Edit
WorkingDirectory
inxrit-rx.service
to the location ofxrit-rx
on your system - Copy
xrit-rx.service
to/etc/systemd/system
(sudo cp xrit-rx.service /etc/systemd/system
) - Reload systemd daemons (
sudo systemctl daemon-reload
) - Start
xrit-rx
service (sudo systemctl start xrit-rx.service
) - Check service is running (
systemctl status xrit-rx.service
) - Check console output of
xrit-rx
(sudo journalctl -u xrit-rx.service
) - Enable service to run at startup (
sudo systemctl enable xrit-rx.service
)
Last active
July 18, 2020 03:48
-
-
Save sam210723/77dca2c813753c63f5d6863e9c28402a to your computer and use it in GitHub Desktop.
Debian systemd service for xrit-rx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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