Skip to content

Instantly share code, notes, and snippets.

@BillyRuffian
Created March 24, 2021 10:49
Show Gist options
  • Save BillyRuffian/6be10076efc61fb94718206436c22754 to your computer and use it in GitHub Desktop.
Save BillyRuffian/6be10076efc61fb94718206436c22754 to your computer and use it in GitHub Desktop.
Simple systemd service for eframe
[Unit]
Description=%i eframe app
After=network.target
[Service]
ExecStart=/home/pi/.local/bin/uwsgi \
--ini /home/pi/Projects/epaper-frame/eframe.ini
User=pi
Restart=on-failure
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy = multi-user.target
@BillyRuffian
Copy link
Author

add as /etc/systemd/system/eframe.service and run

systemctl enable eframe.service
systemctl start eframe.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment