Aller au contenu

Auto Boot Pyload


Messages recommandés

DiskStation> ipkg install python py25-crypto py25-curl libcurl py25-openssl

Package python (2.5-1) installed in root is up to date.

Package py25-crypto (2.1.0-2) installed in root is up to date.

Package py25-curl (7.19.0-1) installed in root is up to date.

Package libcurl (7.21.7-1) installed in root is up to date.

Package py25-openssl (0.10-1) installed in root is up to date.

Nothing to be done

Successfully terminated.

DiskStation>

DiskStation> py25-django py25-pil tesseract-ocr tesseract-ocr-lang-eng ossp-js

-ash: py25-django: not found

DiskStation>

La premiere ligne passe pas la 2eme ...

J'ai change de nas mais pas de HDD dc je suppose qu'il reste qques petits trucs.

Lien vers le commentaire
Partager sur d’autres sites

Apres plusieurs minutes de lecture je me rends compte que je suis un trou de b*****

En fait cest bien ipkg install py25-django

Une fois qu'on comprend ce qu'on fait ça va mieux :)

je coupais la commande en deux du coup ...ca marchait pas normal.

En y repansant j'ai été ridicule !

Enfin maintenant j'ai compris je passe à la suite

Lien vers le commentaire
Partager sur d’autres sites

J'ai suivi tout le tuto

Jai ajouté cette étape à la fin

DiskStation> cd /usr/syno/synoman/webman/3rdparty

DiskStation> wget http://dl.dropbox.com/u/3001640/webman.pyload.tar.gz

–2011-04-10 17:24:11– http://dl.dropbox.com/u/3001640/webman.pyload.tar.gz

Resolving dl.dropbox.com… 184.72.245.175

Connecting to dl.dropbox.com|184.72.245.175|:80… connected.

HTTP request sent, awaiting response… 200 OK

Length: 3227 (3.2K) [application/x-tar]

Saving to: `webman.pyload.tar.gz’

100%[======================================>] 3,227 –.-K/s in 0.009s

2011-04-10 17:24:12 (366 KB/s) – `webman.pyload.tar.gz’ saved [3227/3227]

DiskStation> gunzip webman.pyload.tar.gz

DiskStation> tar xvf webman.pyload.tar

pyload/

pyload/images/

pyload/images/icon32.png

pyload/images/icon16.png

pyload/application.cfg

DiskStation> rm webman.pyload.tar

je vois pyload ds le DSM. Mais rien ne se lance. J'ai mis le port 5003 à la place du 8000 ds la config. J'ai rien changé à part ça. J'ai édité le fichier application.cfg et j'ai mis 5003 mais rien à faire

Une idée ?

Lien vers le commentaire
Partager sur d’autres sites

J'ai mis

Bonsoir,

Voici le script que j'utilise.

Il permet d'upgrader Pyload avec les dernières mises à jours (tip).

Il suffit d'adapter les chemins si vous n'avez pas suivi notre tuto ().


#!/bin/sh

		##########################################################################

		# pyLoad STARTUP and UPDATE SCRIPT for Synology NAS

		# AUTOSTART pyLoad as DAEMON - UPDATE PROGRAM FILES

		# <./S99pyload info>  for  more  details  and  help

		##########################################################################

		PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin

		SYNO=/usr/syno/bin

		DAEMON="python /opt/pyload/pyLoadCore.py --daemon"

		DAEMON_OPTS="--debug"

		STATUS="python /opt/pyload/pyLoadCore.py --status"

		VERSION="python /opt/pyload/pyLoadCore.py -v"

		UPDATE_SRC="https://bitbucket.org/spoob/pyload/get/tip.zip"

		LOG="/volume1/public/.pyload/Logs/log.txt" #your path to the Logfile here!

		SCRN=/usr/syno/etc.default/rc.d/S99pyload.sh

		##########################################################################

		# COMMANDS START

		##########################################################################

		start()

		{

				if [ `$STATUS` -gt 3 ]; then

				echo "`$VERSION`: already performing"

				else

				echo "`$VERSION`: try to start"

				echo "`$VERSION`:" `$DAEMON`

				sleep 2

						if [ `$STATUS` -gt 3 ]; then

						echo "`$VERSION`: successfully startet"

						else

						`$DAEMON`

						fi

				fi

		}

		##########################################################################

		stop()

		{

		if [ `$STATUS` -gt 3 ]; then

				echo "`$VERSION`: try to kill myself"

				kill `$STATUS`; sleep 2

				echo "`$VERSION`: successfully stopped"

		else

				echo "`$VERSION`: already killed"

		fi

		}

		##########################################################################

		update()

		{

		if [ `$STATUS` -gt 3 ]; then

				stop; sleep 5;

		fi

				echo "UPDATE: updating `$VERSION`"

				echo "`date '+%d.%m.%Y %T'` INFO		Updating `$VERSION`" >>$LOG

				cd /opt/

				$SYNO/wget --no-check-certificate -q $UPDATE_SRC

				if [ $? -eq 0 ] ; then

						echo "UPDATE: successfully loaded dev version"

				else

						update

				fi

				unzip -q spoob-pyload*.zip; rm spoob-pyload*.zip

				if [ $? -eq 0 ] ; then

						echo "UPDATE: archive unzipped and removed"; sleep 2

				else

						update

				fi

						$SYNO/rsync -qru /opt/spoob-pyload-*/ /opt/pyload/

				if [ $? -eq 0 ] ; then

						echo "UPDATE: `$VERSION` successfully updated"

				else

						update

				fi

						rm -rf /opt/spoob-pyload-*/

						echo "`date '+%d.%m.%Y %T'` INFO		Update complete" >>$LOG

				start

		}

		##########################################################################

		debug()

		{

		if [ `$STATUS` -gt 3 ]; then

				echo "`$VERSION`: already performing ... restart"

				stop

				sleep 5

				debug

		else

				echo "`$VERSION`: try to start in debug mode + show output"

				echo "`$VERSION`:" `$DAEMON $DAEMON_OPTS`

				sleep 2

				if [ `$STATUS` -gt 3 ]; then

						echo "`$VERSION`: successfully startet in debug mode"

						echo ""

						echo "***** ctrl + c to STOP OUTPUT and return *****"

						echo ""

						tail -f $LOG

				else

						`$DAEMON $DAEMON_OPTS`

				fi

		fi

		}

		##########################################################################

		info()

		{

				if [ `$STATUS` -gt 3 ];

				then

				echo "`$VERSION`: Process ID is `$STATUS`"

				echo ""

		echo '####################################################################'

		echo '# OPERATIONS'

		echo '# start   = start pyLoad (default)'

		echo '# stop	= stop pyLoad'

		echo '# restart = stop and start pyLoad'

		echo '# update  = update program files'

		echo '# debug   = enable debug mode + output'

		echo '# info	= print out PID and status of pyLoad'

		echo '# show	= print out Logfile while executing'

		echo '####################################################################'

				else

				echo "`$VERSION`: process is NOT active"

				fi

		}

		##########################################################################

		show()

		{

				start

				while [ `$STATUS` -gt 3 ]; do

				echo ""

				echo "***** ctrl + c to STOP OUTPUT and return *****"

				echo ""

				tail -f $LOG

				done

		}

		##########################################################################

		case "$1" in

		start)

				start

				;;

		stop)

				stop

				;;

		restart)

				stop

				sleep 5

				start

				;;

		update)

				update

				;;

		debug)

				debug

				;;

		info)

				info

				;;

		show)

				show

				;;

		*)

				echo "Usage: $SCRN (start|stop|restart|update|debug|info|show)" >&2

				exit 1

				;;

		esac


		exit 0

		##########################################################################

		# End of script

		##########################################################################

Bon courage.

TimY

Ton script a l'air de marcher.

Qd je fais :

./s90pyload.sh start

./s90pyload.sh: line 18: the: not found

sh: false: bad number

pyLoad 0.4.9: try to start

pyLoad 0.4.9: Daemon PID 7730

pyLoad 0.4.9:

successfully startet

DiskStation>

Et j'arrive à me connecter à pyload sur la webinterface.Du coup je reboot le nas mais la rien il a pas reboot !!

Je suis ds /etc/init.d

Lien vers le commentaire
Partager sur d’autres sites

Je regarde le script et

SCRN=/usr/syno/etc.default/rc.d/S99pyload.sh

bizarre moi déjà c'est etc.defaults avec un "s" à la fin et de toute façon à cette endroit j'ai pas de fichier S99pyload.sh ...

Normal ?

J'ai essayé de mettre le script ds rc.d au lieu de init.d.

Dans ce cas même en lancant manuellement ça marche pas !!!

HELP please

Modifié par mehdi42
Lien vers le commentaire
Partager sur d’autres sites

  • 2 semaines après...

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

×   Collé en tant que texte enrichi.   Coller en tant que texte brut à la place

  Seulement 75 émoticônes maximum sont autorisées.

×   Votre lien a été automatiquement intégré.   Afficher plutôt comme un lien

×   Votre contenu précédent a été rétabli.   Vider l’éditeur

×   Vous ne pouvez pas directement coller des images. Envoyez-les depuis votre ordinateur ou insérez-les depuis une URL.

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.