1 2 3 4 5 6 7 8 9 10 11
[Unit]Description=Read light level from LDR and store result in file[Service]Type=oneshotUser=root# WorkingDirectory=/home/st33v/light/ExecStart=/usr/local/bin/ldr-counter.py[Install]WantedBy=ldr-counter.timer