This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running pypilot service
#1
I somehow managed to get pypilot installed and running on OpenPlotter 4. But I'm having trouble getting the service to start automatically. It refuses to run within its virtual environment and fails due to missing dependencies.

Here's the systemd unit file:

Code:
[Unit]
Description=pypilot
After=network-online.target local-fs.target
Wants=network-online.target

[Service]
Type=simple
WorkingDirectory=/home/pi/pypilot
ExecStart=/home/pi/pypilot/.venv/bin/python /home/pi/pypilot/pypilot --no-daemon
Environment=VIRTUAL_ENV=/home/pi/pypilot/.venv
Environment=PATH=/home/pi/pypilot/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
User=pi
Group=pi
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
KillMode=control-group

[Install]
WantedBy=multi-user.target

This service starts and runs fine when launched manually, e.g. systemctl start pypilot. But systemd does something different.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)