Hello very please help i installed in entware from opkg cron job package.How setup to check every minute transmission process and minidlna.When both process is stopped need cron to start process automatically.I try this script put in the /opt/etc/cron.1min called proc.sh but this script not working vert please help
#!/bin/sh
#
# runparts.sh by macsat@macsat.com
# intended for use with cron
#
# based on rc.unslung by unslung guys
#
if [ -z "$1" ]
then
echo "Usage : $0 "
fi
RUNDIR=$1"/mnt/sda2/entware/bin/transmission-daemon"
for i in $RUNDIR ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
#!/bin/sh
#
# runparts.sh by macsat@macsat.com
# intended for use with cron
#
# based on rc.unslung by unslung guys
#
if [ -z "$1" ]
then
echo "Usage : $0 "
fi
RUNDIR=$1"/mnt/sda2/entware/bin/transmission-daemon"
for i in $RUNDIR ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
Last edited: