What's new

Crontab start minidlna and transmission

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

kiesa1231

Regular Contributor
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
 
Last edited:

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top