In bestand /opt/init-opt.sh, zet je een "sleep 1m" tussen de afzonderlijke commands.M.v.Veelen schreef op donderdag 17 januari 2013 @ 22:50:
Vraag: er is nogal wat te doen over het opstartscript. Ik wil toch wel graag NZBget, autosub, Sickbeard en Couchpotato automatisch laten starten na een reboot. Het liefst met een wachttijd van 1 minuut tussen de opstartcommando's. Hoe pak ik dat dan aan?
Zie ook http://vincesoft.blogspot...am-at-boot-on-iomega.html
Volkomen overbodig, maar als je het per se wilt...

Mijn /opt/init-opt.sh zoals die er momenteel uit ziet (!! niet klakkeloos overnemen !!):
#!/bin/sh echo "Last bootup:" > /opt/init-opt.log date >> /opt/init-opt.log echo "Wait one minute, so that the storage pool is mounted" >> /opt/init-opt.log sleep 1m echo "Adding /opt/bin and /opt/local/bin to $PATH" >> /opt/init-opt.log PATH=/opt/bin:/opt/local/bin:$PATH echo 262144 > /proc/sys/net/core/rmem_default echo 262144 > /proc/sys/net/core/rmem_max #echo "Starting transmission-daemon" >> /opt/init-opt.log #/opt/bin/transmission-daemon -g /mnt/pools/A/A0/Media/Downloads/_config echo "Starting SABnzbd" >> /opt/init-opt.log /opt/bin/python2.6 /mnt/pools/A/A0/Media/.Apps/sabnzbd/SABnzbd.py --server 192.168.178.27:8080 --daemon echo "Starting SickBeard" >> /opt/init-opt.log /opt/bin/python2.6 /mnt/pools/A/A0/Media/.Apps/Sick-Beard/SickBeard.py --port 8081 --daemon echo "Starting CouchPotato" >> /opt/init-opt.log /opt/bin/python2.6 /mnt/pools/A/A0/Media/.Apps/CouchPotatoServer/CouchPotato.py --data_dir /mnt/pools/A/A0/Media/.Apps/.couchpotato --daemon echo "Starting auto-sub" >> /opt/init-opt.log /opt/bin/python2.6 /mnt/pools/A/A0/Media/.Apps/auto-sub/AutoSub.py -d -l echo "I will reboot after 360 days..." >> /opt/init-opt.log sleep 360d reboot
This is my sick nature.