Systemd service
To run Foxy-Farmer as a systemd service, a template foxy-farmer.service file is provided in the root of the repo.
- Copy the template
foxy-farmer.serviceinto/etc/systemd/system/foxy-farmer.service - Modify the
UserandGroupto your user/group. -
Modify the path to the
foxy-farmerbinary as well as the path to thefoxy-farmer.yamlto fit your paths.Note
When running from source the binary path is in
venv/bin/, so for example/home/user/foxy-farmer/venv/bin/foxy-farmer. -
Reload the daemon to detect your new service:
sudo systemctl daemon-reload - Enable the service to start on boot:
sudo systemctl enable foxy-farmer.service - Start the service:
sudo service foxy-farmer start
Using¶
- The status of the service can be seen via:
sudo service foxy-farmer status - You can stop the service via:
sudo service foxy-farmer stop - You can tail the logs of the service via:
sudo journalctl -u foxy-farmer.service --follow