Skip to content

Instantly share code, notes, and snippets.

@wchargin
Last active July 23, 2023 00:20
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 wchargin/bd377863bd41d261fa48d100b2687bdf to your computer and use it in GitHub Desktop.
Save wchargin/bd377863bd41d261fa48d100b2687bdf to your computer and use it in GitHub Desktop.
[Unit]
Description=Continuous audio recorder
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/home/pi/start.sh
WorkingDirectory=/home/pi
User=pi
Group=pi
[Install]
WantedBy=multi-user.target
#!/bin/sh
export GOOGLE_APPLICATION_CREDENTIALS=...
export RUST_LOG=info,reccon=debug
exec ./reccon 2>&1 | tee -a reccon.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment