Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Autostarting A Torrent Tracker, need help setting up startup script
ryan
post Jul 8 2005, 02:36 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 8-July 05
Member No.: 5,237



I have a torrent tracker setup on my server and right now to start it up I connect to my box and execute a file called bnbt_scren which looks like this:
CODE
#!/bin/bash

screen -dmS TRACKER ./bnbt


I want to have that execute when the server starts up, so I copied that file to /etc/rc.d/init.d and changed it to include the full path to the bnbt tracker:
CODE
#!/bin/bash

screen -dmS TRACKER ./home/httpd/vhosts/mywebsite.com/trinity/bnbt


That doesn't seem to work. I'm fairly new to linux, so is there anything I did wrong with the file?
Go to the top of the page
 
+Quote Post
Termina
post Jul 9 2005, 12:11 AM
Post #2


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



QUOTE
#!/bin/bash

screen -dmS TRACKER ./home/httpd/vhosts/mywebsite.com/trinity/bnbt


Try

QUOTE
#!/bin/bash
screen -dmS TRACKER /home/httpd/vhosts/mywebsite.com/trinity/bnbt


Your way, it's trying to execute it in:

/etc/rc.d/init.d/home/httpd/vhosts/mywebsite.com/trinity/bnbt

Which probably isn't where it's located. wink.gif

Also, I'm not sure what distro you use, but you'll probably have to do this as well:

cp /etc/rc.d/init.d/bnbt /etc/rc2.d/S85bnbt
cp /etc/rc.d/init.d/bnbt /etc/rc2.d/K85bnbt
(make sure to set the permissions you need on them!)

Where rc#.d = your runlevel at start (these may be in another directory)


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th October 2017 - 01:01 AM