Results 1 to 6 of 6
Hi everyone...... HNY.
I need to know where i have to put scripts in order for them to be run when i boot. i'm lookin to disable a few services ...
- 01-01-2007 #1
where do i put my scripts?
Hi everyone...... HNY.
I need to know where i have to put scripts in order for them to be run when i boot. i'm lookin to disable a few services which cant be permanently turned of and i'm still new to linux so feel free to offer any advice a noob might need to know.
thanx to all
" I didn't know it was a picture of his wife! I thought it was a publicity shot form Planet Of the Apes."
- 01-01-2007 #2
If using Suse, you put your own command in /etc/init.d/boot.local. As for services, you should be able to disable most services using "chkconfig" or using the services or runlevel config tool in YAST.
- 01-01-2007 #3errr...well sorry if this sounds a bit braindead but how do i do that?put your own command in /etc/init.d/boot.local.
I've already tried ot uninstall the services and chkconfig the little blighters but there
are some dependancy problems." I didn't know it was a picture of his wife! I thought it was a publicity shot form Planet Of the Apes."
- 01-01-2007 #4Just edit the file and put in the commands you wish to run at boot up. If there are many scripts, you can put them in /usr/local/bin and then put in the commands to run these scripts in /etc/init.d/boot.local e.g. if I had a script called myscript in /usr/local/bin and I want it to be run at boot up, I would simply add /usr/local/bin/myscript to /etc/init.d/boot.local.
Originally Posted by the bassinvader
What are the services you are trying to disable?
- 01-02-2007 #5
portmap ...to get rid of sunrpc
and ipp.
I admit i've not done my homework on this one and perhaps i could just disable them with
no real problems but i'm already learnig abput half a dozen things simultaeneouly so i just want to take reasonable security steps in the meantime and let myself catch up a bit!!" I didn't know it was a picture of his wife! I thought it was a publicity shot form Planet Of the Apes."
- 01-02-2007 #6
To disable a service e.g. portmap from running at boot time, you would do something like
That always works for me on Redhat derived distros and Suse. To stop service immediately, you can doCode:#chkconfig portmap off
orCode:#service portmap stop
The service command is not available in Suse.Code:#/etc/init.d/portmap stop


Reply With Quote