NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Hyperbit
Oct 31, 2012Aspirant
LIBC6 update
i try to install PyCrypto but i get some errors Preparing to replace python-crypto 2.6-2 (using python-crypto_2.6-2_sparc.deb) ... Unpacking replacement python-crypto ... dpkg: dependency problems...
Hyperbit
Nov 01, 2012Aspirant
Etz wrote:
Hyperbit wrote: only the autorun doesn't works :/ #!/bin/sh
### BEGIN INIT INFO
# Provides: pyload
# Required-Start: $syslog $local_fs $network $remote_fs
# Required-Stop: $syslog $local_fs $network $remote_fs
# Should-Start: $remote_fs $named
# Should-Stop: $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts pyload daemon
# Description: This script runs the pyload service
### END INIT INFO
# Starts and stops the pyload daemon.
PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/bin/pyLoadCore
PIDFILE="~/.pyload/pyload.pid"
. /lib/lsb/init-functions
start() {
log_daemon_msg "Starting pyLoad server"
$DAEMON --daemon
if [ $? != 0 ]; then
log_end_msg 1
exit 1
else
log_end_msg 0
fi
}
stop() {
log_daemon_msg "Stoping pyLoad server"
$DAEMON -q
if [ $? != 0 ]; then
log_end_msg 1
# exit 1
else
log_end_msg 0
fi
}
case "$1" in
start)
start
;;
stop)
stop
;;
force-reload)
stop
sleep 5
start
;;
restart)
stop
sleep 2
start
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0
I Got this startupscript inside of init.d , where can i call it for startup ??
I tryd
update-rc.d pyload defaultswithout success
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!