LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   startup files or scripts (https://www.linuxquestions.org/questions/slackware-14/startup-files-or-scripts-182730/)

BajaNick 05-17-2004 11:34 PM

startup files or scripts
 
Which files do I modify to start and stop services and programs starting up at boot? :scratch:
Thanks

slakmagik 05-17-2004 11:44 PM

In Slack? /etc/rc.d/foo. Like if you don't want sendmail, remove the executable bit from rc.sendmail - if you want more detailed items, comment them out in the relevant runlevel, like rc.M.

major.tom 05-18-2004 01:24 AM

There are more in /etc/services

Just comment out the lines for the ones you don't need. (eg. ftp)

Garry

BajaNick 05-19-2004 07:44 PM

What do you mean remove the executable bit?
How do I do that, Can I just move the file to trash?
Thanks.

Kovacs 05-19-2004 07:57 PM

I wouldn't delete them, just in case you want to use them in the future - better off to chmod a-x filename them. The files are owned by root so you shouldn't even be able to move them to the trash, if you can then you shouldn't be running X as root.

thegeekster 05-20-2004 12:21 AM

I agree, don't delete them................And what Kovacs means by removing the executable bit (the x bit) is to remove the file permission that makes a file executable (ie., allowing you to run the program or script).........all those files in /etc/rc.d are scripts. Without the x bit being set, scripts or programs cannot run...............When Slackware boots up, it checks to see if those startup scripts are executable or not and acts accordingly...... :)

There's a very good mini tutorial in LQ by bulliver which should help clarify things a little about file permissions:

Quick and Dirty Guide to Linux File Permissions

BajaNick 05-20-2004 12:40 AM

Ok, cool. Thanks :)

BajaNick 05-23-2004 07:43 PM

Quote:

Originally posted by digiot
In Slack? /etc/rc.d/foo. Like if you don't want sendmail, remove the executable bit from rc.sendmail
Is foo an example or something?, I cannot find it in slack, also, do I absolutly need sendmail since I use yahoo email?
Thanks

tank728 05-23-2004 07:54 PM

No you do not need sendmail to startup, because with yahoo you have to access your mail through the web, not through a e-mail client such as: thunderbird, evolution, kmail. You could also use pkgtool to remove the executable bit from your startup scripts, if your not that comfortable with command line.

-tank

BajaNick 05-23-2004 07:56 PM

Cool, Thats what I thought but I was not completely sure. Thanks..

thegeekster 05-25-2004 01:12 AM

Quote:

Originally posted by BajaNick
Is foo an example or something?, I cannot find it in slack...
Yes, "foobar", "foo' and "bar" are often used as examples.............. :)


All times are GMT -5. The time now is 10:41 PM.