Hi Matthias and edoput,
I was confused at the point of the init files section, and Matthias gave me these commands to try:
ls -l /etc/init.d
cat /etc/init.d/tracker
ls -l /usr/local/usr/bin/bnbt
ls /bin
ls -l /mnt/ext/etc/config/bnbt
Here are the outputs:
ls -l /etc/init.d
root@piratebox:~# ls -l /etc/init.d
-rwxr-xr-x 1 root root 2887 Nov 10 2014 boot
-rwxr-xr-x 1 root root 385 Nov 17 2014 cron
-rwxr-xr-x 1 root root 318 Nov 10 2014 defconfig
-rwxr-xr-x 1 root root 12623 Nov 14 2014 dnsmasq
-rwxr-xr-x 1 root root 318 Nov 10 2014 done
-rwxr-xr-x 1 root root 4367 Nov 14 2014 dropbear
-rwxr-xr-x 1 root root 589 Oct 10 2014 ext
-rwxr-xr-x 1 root root 262 Nov 14 2014 firewall
-rwxr-xr-x 1 root root 2004 Nov 17 2014 fstab
-rwxr-xr-x 1 root root 1740 Nov 10 2014 led
lrwxrwxrwx 1 root root 30 Jan 1 00:04 lighttpd -> /usr/local/etc/init.d/lighttpd
lrwxrwxrwx 1 root root 30 Jan 1 00:02 minidlna -> /usr/local/etc/init.d/minidlna
-rwxr-xr-x 1 root root 559 Nov 10 2014 network
lrwxrwxrwx 1 root root 30 Jan 1 00:04 piratebox -> /mnt/ext//etc/init.d/piratebox
-rwxr-xr-x 1 root root 454 Nov 10 2014 rcS
-rwxr-xr-x 1 root root 126 Nov 10 2014 sysctl
-rwxr-xr-x 1 root root 586 Nov 10 2014 sysntpd
-rwxr-xr-x 1 root root 878 Nov 17 2014 telnet
-rwxr--r-- 1 root root 584 Jan 1 00:05 tracker
-rwxr-xr-x 1 root root 154 Nov 14 2014 ubus
-rwxr-xr-x 1 root root 102 Nov 10 2014 umount
-rwxr-xr-x 1 root root 154 Nov 10 2014 usb
-rwxr-xr-x 1 root root 244 Nov 10 2014 watchdog
cat /etc/init.d/tracker
root@piratebox:~# cat /etc/init.d/tracker
#!/bin/sh /etc/rc.common
# description: run tracker server on startup
# the new galaxy most resilient tracker
NAME="torrent tracker"
# Start order
START=99
# Stop order
# STOP=
# move to config directory
cd /mnt/ext/etc/config/bnbt
# Start the torrent tracker
start () {
service_start /bin/bnbt &
## create a lock file
## touch /var/lock/subsys/bnbt
## success $"Tracker Server startup"
## echo
}
# Stop the torrent tracker
stop () {
service_stop /bin/bnbt
}
ls -l /usr/local/usr/bin/bnbt
root@piratebox:~# ls -l /usr/local/usr/bin/bnbt
-rwxr-xr-x 1 root root 444069 Mar 23 2013 /usr/local/usr/bin/bnbt
ls /bin
root@piratebox:~# ls /bin
ash fsync ping
bnbt grep ping6
box_init_setup.sh gunzip ps
box_installer.sh gzip pwd
box_installer_start.sh ipcalc.sh rm
busybox kill rmdir
cat ln sed
chgrp lock sh
chmod login.sh sleep
chown ls sync
cp mkdir tar
date mknod touch
dd mktemp true
df mount ubus
dmesg mv umount
echo netmsg uname
egrep netstat vi
ext_path_fixer nice zcat
false opkg
fgrep pidof
ls -l /mnt/ext/etc/config/bnbt
-rw-r--r-- 1 root root 3616 Jan 1 00:02 bnbt.cfg
-rw-r--r-- 1 root root 36 Jan 1 00:13 dstate.bnbt
-rw-r--r-- 1 root root 2 Jan 1 00:13 tags.bnbt
There are the outputs of the commands.
I was confused at the point of the init files section, and Matthias gave me these commands to try:
ls -l /etc/init.d
cat /etc/init.d/tracker
ls -l /usr/local/usr/bin/bnbt
ls /bin
ls -l /mnt/ext/etc/config/bnbt
Here are the outputs:
ls -l /etc/init.d
root@piratebox:~# ls -l /etc/init.d
-rwxr-xr-x 1 root root 2887 Nov 10 2014 boot
-rwxr-xr-x 1 root root 385 Nov 17 2014 cron
-rwxr-xr-x 1 root root 318 Nov 10 2014 defconfig
-rwxr-xr-x 1 root root 12623 Nov 14 2014 dnsmasq
-rwxr-xr-x 1 root root 318 Nov 10 2014 done
-rwxr-xr-x 1 root root 4367 Nov 14 2014 dropbear
-rwxr-xr-x 1 root root 589 Oct 10 2014 ext
-rwxr-xr-x 1 root root 262 Nov 14 2014 firewall
-rwxr-xr-x 1 root root 2004 Nov 17 2014 fstab
-rwxr-xr-x 1 root root 1740 Nov 10 2014 led
lrwxrwxrwx 1 root root 30 Jan 1 00:04 lighttpd -> /usr/local/etc/init.d/lighttpd
lrwxrwxrwx 1 root root 30 Jan 1 00:02 minidlna -> /usr/local/etc/init.d/minidlna
-rwxr-xr-x 1 root root 559 Nov 10 2014 network
lrwxrwxrwx 1 root root 30 Jan 1 00:04 piratebox -> /mnt/ext//etc/init.d/piratebox
-rwxr-xr-x 1 root root 454 Nov 10 2014 rcS
-rwxr-xr-x 1 root root 126 Nov 10 2014 sysctl
-rwxr-xr-x 1 root root 586 Nov 10 2014 sysntpd
-rwxr-xr-x 1 root root 878 Nov 17 2014 telnet
-rwxr--r-- 1 root root 584 Jan 1 00:05 tracker
-rwxr-xr-x 1 root root 154 Nov 14 2014 ubus
-rwxr-xr-x 1 root root 102 Nov 10 2014 umount
-rwxr-xr-x 1 root root 154 Nov 10 2014 usb
-rwxr-xr-x 1 root root 244 Nov 10 2014 watchdog
cat /etc/init.d/tracker
root@piratebox:~# cat /etc/init.d/tracker
#!/bin/sh /etc/rc.common
# description: run tracker server on startup
# the new galaxy most resilient tracker
NAME="torrent tracker"
# Start order
START=99
# Stop order
# STOP=
# move to config directory
cd /mnt/ext/etc/config/bnbt
# Start the torrent tracker
start () {
service_start /bin/bnbt &
## create a lock file
## touch /var/lock/subsys/bnbt
## success $"Tracker Server startup"
## echo
}
# Stop the torrent tracker
stop () {
service_stop /bin/bnbt
}
ls -l /usr/local/usr/bin/bnbt
root@piratebox:~# ls -l /usr/local/usr/bin/bnbt
-rwxr-xr-x 1 root root 444069 Mar 23 2013 /usr/local/usr/bin/bnbt
ls /bin
root@piratebox:~# ls /bin
ash fsync ping
bnbt grep ping6
box_init_setup.sh gunzip ps
box_installer.sh gzip pwd
box_installer_start.sh ipcalc.sh rm
busybox kill rmdir
cat ln sed
chgrp lock sh
chmod login.sh sleep
chown ls sync
cp mkdir tar
date mknod touch
dd mktemp true
df mount ubus
dmesg mv umount
echo netmsg uname
egrep netstat vi
ext_path_fixer nice zcat
false opkg
fgrep pidof
ls -l /mnt/ext/etc/config/bnbt
-rw-r--r-- 1 root root 3616 Jan 1 00:02 bnbt.cfg
-rw-r--r-- 1 root root 36 Jan 1 00:13 dstate.bnbt
-rw-r--r-- 1 root root 2 Jan 1 00:13 tags.bnbt
There are the outputs of the commands.