Results 1 to 5 of 5

Thread: unslung cron ipkg problem

  1. #1
    Join Date
    Jun 2006
    Location
    England
    Posts
    18

    unslung cron ipkg problem

    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?

  2. #2
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    MAybe

    #!/bin/sh

  3. #3
    Join Date
    Jun 2006
    Location
    England
    Posts
    18
    Quote Originally Posted by oleo
    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.

  4. #4
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    Mine config:
    Code:
    $ 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 &

    Code:
    $ 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

  5. #5
    Join Date
    Jun 2006
    Location
    England
    Posts
    18
    Quote Originally Posted by oleo
    Mine config:
    Code:
    $ 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
    Code:
    #!/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.

Similar Threads

  1. Problem installing ipkg
    By the_slider in forum WL-500g Q&A
    Replies: 8
    Last Post: 29-06-2005, 08:35
  2. Problem with dieing AIR-connection
    By BòóN in forum WL-500g Q&A
    Replies: 7
    Last Post: 26-10-2004, 12:04

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •