Skip to content

Instantly share code, notes, and snippets.

@yeyus
Created February 24, 2017 21:46
Show Gist options
  • Save yeyus/378321eb1451342fb1bbeec8e32863dc to your computer and use it in GitHub Desktop.
Save yeyus/378321eb1451342fb1bbeec8e32863dc to your computer and use it in GitHub Desktop.
systemd service to record a program everyday
[Unit]
Description=Grabador carnaval sur
[Service]
WorkingDirectory=/home/yeyus/carnaval2017
ExecStart=/usr/bin/streamripper "http://195.55.74.212/rtva/radioandalucia.mp3?GKID=32fafc36e05911e6a89200163ea2c744" -R 0 -l 46800 -D "carnavalsur_%d"
Type=oneshot
[Install]
WantedBy=multi-user.target
[Unit]
Description=Grabar carnavales
[Timer]
OnCalendar=*-*-* 10:30:00
Persistent=false
[Install]
WantedBy=timers.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment