LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2005, 04:58 PM   #1
Drfarfrompuken
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Rep: Reputation: 0
Perl Scripts at startup? Suse 9.3


Ok this maybe a stupid question but maybe the only stupid question is the one not asked!

I am trying to run Slimserver on a recently installed SUSE 9.3 box and the only way I can get it working is to run the Slimserver.pl manually but I would really like to be able to set it up so that the 'slimserver.pl --daemon' is started when the computer loads up as I will not always be there when the computer is restarted.

Ive looked into startup scripts something to do with init.d I think but the only Linux experience I have is through using computers in Uni.

Any help would be greatly appreciated.

Thanks
 
Old 08-03-2005, 07:37 PM   #2
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
OK... create a file called "/etc/rc.d/rc.slimserver"

Put the following in it:
#!/bin/bash
/path/to/slimserver.pl -daemon

Then, run "chmod 700 /etc/rc.d/rc.slimserver", and you're all set.
 
Old 08-04-2005, 05:51 AM   #3
Drfarfrompuken
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Original Poster
Rep: Reputation: 0
oot,

thanks for the reply, however despite this the script is not running at startup, I can run the script manually to start the slimserver so I know the script is correct.
 
Old 08-04-2005, 07:45 AM   #4
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
You could simply place your "/path/to/slimserver.pl -daemon" in rc.local.
 
Old 08-04-2005, 10:38 AM   #5
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
Drfarfrompuken, you'll need to translate this into SuSE. The posts are on the write track, but Slack and Suse startup is different.
 
Old 08-04-2005, 03:06 PM   #6
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
They differ (Slackware's BSD style vs. Suse's SysV style), that's true, but surely there is rc.local in suse also? It's location is another question...

it will be in one of the following directories:

/etc/
/etc/rc.d/
/etc/init.d/
/etc/rc.d/init.d/

Some of the above directories might be symlinks to some others, that's the way some distros are built. I don't really have any experience with suse, and in fact I've only taken a brief look at it's startup scripts on a friend's computer. Since it looked like a total mess to me, I can't be of any help with which one of the above is the correct one.

Last edited by alienDog; 08-04-2005 at 03:13 PM.
 
Old 08-04-2005, 04:15 PM   #7
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
/etc/init.d/boot.local

Read /sbin/init.d.README. It's a good primer on the SuSE startup. It is a little convoluted, but its to LSB standards.

Last edited by ghight; 08-04-2005 at 04:16 PM.
 
Old 08-05-2005, 08:41 AM   #8
Drfarfrompuken
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for all your help,

Through browsing many a forum with regards to Suse it seems that it does a number of things differently to other distros. The only reason I got suse was because there were some spare copies floating around uni, perhaps if I tried a more 'compliant' distro, maybe Mandrake? It would be easier for me to learn the ropes, as this is afterall, the whole point of the exercise.
 
Old 08-05-2005, 09:12 AM   #9
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
Quote:
Originally posted by Drfarfrompuken
Thanks for all your help,

Through browsing many a forum with regards to Suse it seems that it does a number of things differently to other distros. The only reason I got suse was because there were some spare copies floating around uni, perhaps if I tried a more 'compliant' distro, maybe Mandrake? It would be easier for me to learn the ropes, as this is afterall, the whole point of the exercise.
The irony is that SuSE is to the Linux Standards Base standard. The more popular distros AREN'T to any defined standard. The whole Linux Standard things doesn't seem to be taking off very well although it's not real hard to see why. Personally, I think Slackware startup makes the most sense, but other than being unintuitive, the SuSE scripts are very well documented so it isn't too difficult to scan the filesystem to find the information that you need.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
shell and perl scripts srnerkar1 Programming 2 12-03-2005 04:07 PM
how can I run my perl scripts in emacs linjia Linux - Software 1 12-05-2004 11:30 AM
Irssi and perl and scripts? MrDoctor Linux - Newbie 0 04-05-2004 10:44 AM
perl scripts mimf Linux - Newbie 3 12-02-2003 12:10 AM
Combining 2 perl scripts together meluser Programming 5 03-18-2003 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:14 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration