Hallo,
ich wollte wie unter http://forum.ubuntuusers.de/topic/pyload-automatisch-starten/ beschrieben, ein script installieren um pyload automatisch starten zu lassen.
script erstellt, ausführbar gemacht, trotzdem lässt es sich nicht manuell starten...folgende Fehlermeldung kommt:
sudo /etc/init.d/pyload /bin/sh: 0: Illegal option -
die selbe Fehlermeldung kommt jetzt auch wenn ich versuche, pyload mit service pyload start zu starten...
hier das script:
#!/bin/sh -e ### BEGIN INIT INFO # Provides: pyload # Required-Start: $local_fs $remote_fs $network # Required-Stop: $local_fs $remote_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start or stop pyload. ### END INIT INFO NAME=pyload DAEMON=/usr/bin/pyLoadCore USER=lol STOP_TIMEOUT=3 PIDFILE=/var/run/$NAME.pid export PATH="${PATH:+$PATH:}/sbin" [ -x $DAEMON ] || exit 0 [ -e /etc/default/$NAME ] && . /etc/default/$NAME . /lib/lsb/init-functions start_daemon () { start-stop-daemon --background --start --pidfile $PIDFILE --chuid $USER --exec $DAEMON -- $OPTIONS | cut -d" " -f 3 > $PIDFILE } stop_daemon () { start-stop-daemon --stop --retry="TERM/30/KILL/5" --pidfile "$PIDFILE" --user "$USER" --chuid "$USER" } case "$1" in start) log_daemon_msg "Starting pyLoadCore" "$NAME" start_daemon log_end_msg 0 ;; stop) log_daemon_msg "Stopping pyLoadCore" "$NAME" stop_daemon log_end_msg 0 ;; restart) log_daemon_msg "Restarting pyLoadCore" "$NAME" stop_daemon start_daemon log_end_msg 0 ;; *) echo "Usage: /etc/init.d/$NAME {start|stop|restart}" exit 2 ;; esac exit 0
Ich benutze zurzeit Ubuntu 12.10 - XBMCbuntu (GNU/Linux 3.5.0-22-generic i686)