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 |
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. |
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. |
You could simply place your "/path/to/slimserver.pl -daemon" in rc.local.
|
Drfarfrompuken, you'll need to translate this into SuSE. The posts are on the write track, but Slack and Suse startup is different.
|
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. |
/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. |
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. |
Quote:
|
All times are GMT -5. The time now is 09:34 AM. |