Results 1 to 1 of 1
(not posting whole URLs since I'm a new member) I'm putting the finishing touches on a trial Reddit install on a Debian Etch webserver, and I'm getting tripped up at ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-25-2010 #1
- Join Date
- Jun 2010
Help with daemontools and scheduling cron jobs
I'm putting the finishing touches on a trial Reddit install on a Debian Etch webserver, and I'm getting tripped up at one of the last steps:
If you've got daemontools up and running (may require a reboot -- make sure svscan is running), you can now install the services: me$ sudo ln -s ~/reddit/srv/* /service/ [NOTE: depending on your architecture, /service/ may be in /etc/service/]. If all is working, the app should be running on both ports 8001 and 8002. It should also be safe to install the cron jobs. here's what we recommend for a crontab: # m h dom mon dow command */5 * * * * ~/reddit/scripts/rising.sh */4 * * * * ~/reddit/scripts/send_mail.sh */3 * * * * ~/reddit/scripts/broken_things.sh 1 * * * * ~/reddit/scripts/update_promos.sh */2 * * * * ~/reddit/scripts/look_for_verdicts.sh 0 */6 * * * ~/reddit/scripts/catchup_batch_queries.sh
#!/bin/sh echo starting exec clockspeed
dpkg-query -W | grep -i daemont daemontools 1:0.76-2~bpo40+1 daemontools-run 1:0.76-2~bpo40+1 ndn-daemontools 0.76-11
What am I doing wrong? Can you help me get daemontools properly installed and properly symlink the services that should be run (sudo ln -s ~/reddit/srv/* /service/)?
I'm currently trying to edit /etc/rc.local according to these instructions: cr.yp.to/daemontools/start.html . Would the entry go before or after "exit 0?"
csh -cf '/command/svscanboot &' exit 0
Secondly, I'm trying to get some cron jobs running. This is what I see for my current cron tab:
sudo crontab -l MAILTO="" 0 0 * * * cd /usr/local/reddit/r2; paster run example.ini r2/lib/user_stats.py -c "set_stats()" 0 */1 * * * cd /usr/local/reddit/r2; paster run example.ini r2/lib/count.py -c "update_link_counts('12 hours')" */3 * * * * cd /usr/local/reddit/r2; paster run example.ini r2/lib/emailer.py -c "send_queued_mail()"
root 2295 0.0 0.2 11500 852 ? Ss Jun17 0:03 /usr/sbin/cron