Page 1 of 1

Autostart TwonkyServer under Debian Linux 6.0

Posted: Thu Sep 15, 2011 12:51 am
by nobbypop
Hi folks,

after painfully searching for hours and hours, I would like you to know, how an autostart could be accomplished.

After installation, using the installscript (in my case) twonkymedia-i386-glibc-2.2.5-6.0.34.sh, you may setup autostart within debian, by first adapting the startup script "twonkyserver", located in /etc/init.d/.

Insert directly after
# Required-Start: $network $remote_fs
another line
# Required-Stop:
This will remove the error/warning which comes from init-rc.d or insserv.
It should be a good idea to take this little line into the official release to be LSB conform

Now change
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
to
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
This will allow TwonkyServer to also autostart in runlevel 2, which is the default runlevel in most Debian installations. It is the standard multiuser runlevel and will do the trick.

The last thing to do is to use init-rc.d or insserv to automatically create the symbolic links to the appropriate runlevels.

Navigate to /etc/init.d/ and use either
init-rc.d twonkyserver defaults
or
insserv twonkyserver -d

That's it!

Have Phun...
NobbyPop

PS:
I think this could be worth taking this into the official documentation. Could save lots of time and energy, google-ing.

Re: Autostart TwonkyServer under Debian Linux 6.0

Posted: Thu Sep 15, 2011 5:38 pm
by DaemonBeetle
Ubuntu 11.04 requires the same changes (I just realised I made those changes when I installed it and forgot about them). It's probably worth cross-posting this to the Linux forum so others are aware.