simple-bpq-telnet-application
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| simple-bpq-telnet-application [2024/11/29 14:39] – kc2ihx | simple-bpq-telnet-application [2024/11/29 14:57] (current) – kc2ihx | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| - Create a location for the script, data, and a python '' | - Create a location for the script, data, and a python '' | ||
| - Write the script | - Write the script | ||
| + | - Add the application to '' | ||
| - Setup a '' | - Setup a '' | ||
| Line 96: | Line 97: | ||
| ===== Configuring this as a service ===== | ===== Configuring this as a service ===== | ||
| Next we'll configure a '' | Next we'll configure a '' | ||
| - | //todo write block describing adding a service to run this script// | ||
| + | I created this file as a " | ||
| + | < | ||
| + | # service for RRoAX25 server | ||
| + | # replace USER with the username under which you created the bpq-apps venv | ||
| + | [Unit] | ||
| + | Description=" | ||
| + | After=network.target | ||
| + | [Service] | ||
| + | Type=simple | ||
| + | WorkingDirectory=/ | ||
| + | ExecStart=/ | ||
| + | Restart=always | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=default.target | ||
| + | </ | ||
| + | |||
| + | Activate it by running: | ||
| + | < | ||
| + | systemctl --user enable rick.service | ||
| + | systemctl --user start rick.service | ||
| + | </ | ||
| + | |||
| + | Then check the status to confirm it is working: | ||
| + | |||
| + | < | ||
| + | systemctl --user status rick.service | ||
| + | </ | ||
| + | |||
| + | If you need to edit the service file, reload it with: | ||
| + | < | ||
| + | systemctl --user daemon-reload | ||
| + | </ | ||
simple-bpq-telnet-application.1732891195.txt.gz · Last modified: by kc2ihx