Cant get cron to auto start at boot been following the guide but too much of a newb with linux please help. Will start it manualy so I can continue for now.
My PS axf results
Code:
[admin@(none) root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
47 ? S 0:00 telnetd
48 ? S 0:00 httpd eth1
54 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
55 ? S 0:00 klogd
56 ? S 0:00 [dnsmasq]
58 ? Ss 0:01 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
61 ? S 0:00 [khubd]
70 ? Ss 0:00 lpd
72 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
75 ? Ss 0:00 waveservermain
77 ? Ss 0:00 rcamdmain
81 ? S 0:00 [usb-storage-0]
82 ? S 0:00 [scsi_eh_0]
86 ? Ss 0:00 infosvr br0
87 ? Ss 0:02 watchdog
91 ? Ss 0:00 \_ ntp
100 ? S 0:00 dropbear
107 ? Ss 0:01 \_ dropbear
113 pts/0 Rs 0:00 \_ -sh
129 pts/0 R+ 0:00 \_ ps axf
106 ? S 0:00 udhcpc -i eth1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc
116 ? S 0:00 [kjournald]
117 ? S 0:00 [kjournald]
120 ? S 0:00 stupid-ftpd
127 ? S 0:00 upnp -D -L br0 -W eth1
My unslung
Code:
[admin@(none) root]$ vi /opt/etc/init.d/rc.unslung
# starting them in numerical order and
# stopping them in reverse numerical order
#
if [ $# -ne 1 ]; then
printf "Usage: $0 {start|stop}\n" >&2
exit 1
fi
daemons=`echo $(/usr/bin/dirname $0)/S??*`
[ $1 = "stop" ] && daemons=`echo $daemons | /usr/bin/tr " " "\n" | /usr/bin/sort
for i in $daemons; do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
# Write to syslog
logger -t rc.unslung "$1 service $i"
case "$i" in
*.sh)
# Source shell script for speed.
(
- /opt/etc/init.d/rc.unslung 1/34 2%
tarting them in numerical order and
# stopping them in reverse numerical order
#
if [ $# -ne 1 ]; then
printf "Usage: $0 {start|stop}\n" >&2
exit 1
fi
daemons=`echo $(/usr/bin/dirname $0)/S??*`
[ $1 = "stop" ] && daemons=`echo $daemons | /usr/bin/tr " " "\n" | /usr/bin/sort -r`
for i in $daemons; do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
# Write to syslog
logger -t rc.unslung "$1 service $i"
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set $1
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i $1
;;
esac
done
My Post-boot only had the top 2 lines so I copied the rest from a post on the forum.
Code:
[admin@(none) root]$ vi /usr/local/sbin/post-boot
#!/bin/sh
dropbear
# test if USB disc has been attached
# if not - then insert needed modules
#
# uncoment the following 4 lines if using an USB HDD.
if [ ! -d /dev/discs ]
then
insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
fi
#Wait for /opt to mount
mount /dev/discs/disc0/part2 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
- /usr/local/sbin/post-boot 1/27 3%
#!/bin/sh
dropbear
# test if USB disc has been attached
# if not - then insert needed modules
#
# uncoment the following 4 lines if using an USB HDD.
if [ ! -d /dev/discs ]
then
insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
fi
#Wait for /opt to mount
mount /dev/discs/disc0/part2 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done