- Posts: 33
- Thank you received: 3
# m h dom mon dow command 0 5 * * * ~/bin/pull-gits.sh @reboot /bin/sleep 60 && /home/pi/time-zone-server/run.sh 2> /home/pi/time-zone-server/cron.err > /home/pi/time-zone-server/cron.out
pi@raspberrypi:~ $ cat /home/pi/time-zone-server/run.sh cd /home/pi/time-zone-server/ nohup /usr/local/bin/node time-zone-service.js >> tzs.log &
And that is precisely the kind of feedback I was hoping for. If I'm ever to progress beyond noob level with my pi I want to do things right.
Ian wrote: I'm a bit of a Linux Nazi, so I wouldn't choose to do it that way, simply because it's a user land process and it doesn't belong in there.
After reading your post that is what I expected to find but oddly it's running as user "pi". I can't explain it.
Ian wrote: (I think you'll find that is it running as root).
Indeed. Every time I look for something Linux related online I seem to find a dozen conflicting answers and can only guess at the quality of said answers. Oh well, live and learn.
Ian wrote: But there are many ways to skin a cat.