Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Dec 16, 2017 11:35 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sat Jan 25, 2014 5:46 pm 
Offline
Newbie

Joined: Thu Aug 22, 2013 5:24 pm
Posts: 20
Hi guys!
Thanks very much for the guides on the wiki, i succeffuly opened my router and now i can do whatever i want with it :finger:

just a question:
I've done this script, i need to start transmission-daemon on the start of the linkstation
Code:
#!/bin/sh

PIDFILE=/opt/var/run/transmission-daemon.pid
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin

start() {
        if [ -f $PIDFILE ]; then
                echo "Warning : $PIDFILE still present. Unclean shutdown ?"
                kill -9 `cat $PIDFILE` 2>/dev/null
                rm -f $PIDFILE 2>/dev/null
        fi
        echo -n "Starting transmission... "
        /opt/bin/transmission-daemon
        echo "done"
}

stop() {
        echo -n "Shutting down transmission... "
        if [ -f $PIDFILE ]; then
                kill -9 `cat $PIDFILE` 2>/dev/null
                rm -f $PIDFILE 2>/dev/null
        fi
        echo "done"
}

case "$1" in
        start)
                start
                ;;
        stop)
                stop
                ;;
        restart)
                stop
                sleep 1
                start
                ;;
        *)
                echo "Usage: $0 (start|stop|restart)"
                exit 1
                ;;
esac

and i putted it in /opt/etc/init.d/S99transmission-daemon, i've also done a link in /etc/init.d/transmission_daemon.sh with the command:
Code:
ln -s /opt/etc/init.d/S99transmission_daemon /etc/init.d/transmission_daemon.sh

it seems to work: if i do "pidof transmission daemon" i get an id but i still can't reach it from the web ui! How can this be possible :?:

Thanks very much again and have a nice day :up:


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited