LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-09-2006, 01:10 AM   #1
HammerTime
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
Ventrilo Server for Slackware


Hi Everyone,

I have a problem that I cannot find a solution to.

I installed Ventrilo in my Slackware box.
Gave it the path of: /usr/local/ventrilo
The file that runs it is: ventrilo_srv

I can open a terminal window and launch the program just fine and it works. However, I'd much rather have it start up as a service kind of like windows does. I know, bad word, but I'm new to Slackware and loving it.

I'd like to know how to configure a script named: rc.ventrilo in the /etc/rc.d/ folder that would automatically start on boot.

If somebody has something already put together to share, Great.
If somebody has a link to a URL that would explain a how to for a noob, that's Great too.

Thanks in Advance for your help!
 
Old 01-09-2006, 08:28 AM   #2
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
Distribution-specific differences notwithstanding (I'm a Debian man myself), there's nothing particularly special about startup scripts. They're just standard shell scripts that are run at start time - like a shortcut you'd put in the Windows 'Startup' folder of the Start menu. Except with Linux scripting powers.

If you write yourself a short startup script, something along the lines of
Code:
#!/bin/sh
#
# Script to launch Ventrilo

cd /path/to/ventrilo
./ventrilo_srv
This should work, you may find there's something else you have to do before starting Ventrilo (and you may in fact find that changing the directory in unnecessary) but this will probably work. Put this file in the place where startup scripts live on Slackware (/etc/rc.d?) and make it executable.

Then, just link to the script from all the runlevels you want it to run in (usually 3 and 5). It's probably best to give the script a high number, so that it runs after other components (particularly network ones) have loaded; the following should work:
Code:
hammertime@hostname:/etc/rc3.d# ln -s /etc/rc.d/ventrilo_script_name S95ventrilo
If you actually want Ventrilo to run as a daemon, check its man page and/or docs to see if you can specify this with some kind of option. Technically, what I've described here isn't running like a service in Windows; it's essentially doing exactly the same as if you typed in the command yourself every bootup. However, I'd imagine that this is fine for your requirements. If not let me know and we'll try to work through it.

HTH,
Andrzej
 
Old 01-09-2006, 12:37 PM   #3
HammerTime
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your valued input, I'll give it a shot tonight when I get home from work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ventrilo and teamspeak server free for linux? krisdefou Linux - Software 3 10-17-2005 06:55 PM
Ventrilo server losses sound... sunlock.dk Linux - Software 0 11-23-2004 10:07 AM
Starting ventrilo on a linux server Semper Linux - Software 2 11-06-2004 04:36 PM
setting up ventrilo server phishintrip Linux - Software 1 09-03-2003 07:52 PM
Ventrilo Server Ghettozn Linux - Networking 0 08-02-2003 02:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration