Skip to content

Instantly share code, notes, and snippets.

@ronilaukkarinen
Last active December 23, 2021 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronilaukkarinen/473499f11bacf887cbeb1270bcccb515 to your computer and use it in GitHub Desktop.
Save ronilaukkarinen/473499f11bacf887cbeb1270bcccb515 to your computer and use it in GitHub Desktop.
Working systemd service script for RuuviCollector. Tested on Fedora 32. All other attempts as user didn't measure any data.
[Unit]
Description=RuuviCollector
After=influxd.service
[Service]
Type=simple
ExecStart=/usr/bin/java -jar /home/rolle/RuuviCollector/target/ruuvi-collector-0.2.jar
Restart=always
User=root
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment