Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. # touch /etc/systemd/system/multi-user.target.wants/co2.service
  2. # chmod 644 /etc/systemd/system/multi-user.target.wants/co2.service
  3. # systemctl enable co2meter
  4. # systemctl start co2meter
  5. [Unit]
  6. Description=c02meter
  7.  
  8. [Service]
  9. Type=simple
  10. Environment=HID=/dev/hidraw3
  11. Environment=DATADOG_TOKEN=myddtoken
  12. ExecStart=/bin/bash -c 'python /home/pi/slab_ht2000/main.py'
  13.  
  14. [Install]
  15. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement