Skip to content

Commit

Permalink
systemd: ledring+button service
Browse files Browse the repository at this point in the history
  • Loading branch information
fernflower committed Jun 12, 2017
1 parent 1ee1347 commit d93f5e1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ledring.service.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=12-diode led ring and button

[Service]
Type=idle
# figure out how to rewrite this without direct paths
Environment="PATH=/root/savemyorchids/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Environment="VIRTUAL_ENV=/root/savemyorchids/.venv"
WorkingDirectory=/root/savemyorchids
ExecStart=/root/savemyorchids/.venv/bin/python /root/savemyorchids/button.py
StandardOutput=syslog
StandardError=syslog

[Install]
WantedBy=multi-user.target

0 comments on commit d93f5e1

Please sign in to comment.