PDA

Bekijk de volledige versie : unslung cron ipkg problem



bubieyehyeh
05-06-2006, 23:09
I installed the cron ipkg problem. However I'm having trouble getting it to start the cron daemon at bootup. I tried adding:
/opt/etc/init.d/rc.unslung
to /usr/local/sbin/post-boot
and then just
/opt/sbin/cron
but neither seems to work.

However if I use either of the commands, when I telnet or ssh in I can start the cron daemon.

Anyone see what I'm missing?

oleo
06-06-2006, 06:50
MAybe

#!/bin/sh

bubieyehyeh
06-06-2006, 09:37
MAybe

#!/bin/sh

If you mean at the start of /usr/local/sbin/post-boot. I already have that. It starts dropbear (the ssh server) but not the cron server started afterwards.

oleo
06-06-2006, 13:20
Mine config:

$ cat /opt/etc/crontab
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/bin:/opt/sbin
MAILTO=""
HOME=/
# ---------- ---------- Default is Empty ---------- ---------- #
# m h dom mon dow user command
*/30 * * * * admin nice torrent_watchdog
*/15 * * * * admin uptime >> /opt/var/log/uptime.log

# 8am-7pm activity reports every 10 minutes during weekdays.
#0 8-18 * * 1-5 admin /opt/lib/sa/sa1 600 6 &

# 7pm-8am activity reports every an hour during weekdays.
#0 19-7 * * 1-5 admin /opt/lib/sa/sa1 &

# Activity reports every an hour on Saturday and Sunday.
#0 * * * 0,6 admin /opt/lib/sa/sa1 &

# Daily summary prepared at 19:05
#5 19 * * * admin /opt/lib/sa/sa2 -A &





$ cat /opt/etc/init.d/S10cron
#!/bin/sh
#
# Startup script for cron
#
# Stop myself if running
if [ -n "`pidof cron`" ]; then
/bin/killall cron 2>/dev/null
fi

/opt/sbin/cron

bubieyehyeh
06-06-2006, 18:06
Mine config:


$ cat /opt/etc/init.d/S10cron
#!/bin/sh
#
# Startup script for cron
#
# Stop myself if running
if [ -n "`pidof cron`" ]; then
/bin/killall cron 2>/dev/null
fi

/opt/sbin/cron


Thanks for that, the crontab gave me some ideas.
My S10cron is the same. However the cron daemon
doesn't get started at bootup.

Here my /usr/local/sbin/post-boot


#!/bin/sh

# Activate swap
swapon /dev/discs/disc0/part2

# Start ssh server
dropbear

# Run all active services - active means starts with S
#/opt/etc/init.d/rc.unslung

# Start Cron
/opt/sbin/cron


The dropbear server starts ok at bootup but not the cron server. I also tried the commented /opt/etc/init.d/rc.unslung but that doesn't work either.