SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
someone knows how to make a program (in '/etc/rc.d/..') runnable, without writing to '../rc.local'.
For example 'rc.cupsd' which is listed there too started automatically at boot, if i try the same with that script called, 'rc.postfix' with equal rights like 'rc.cupsd' -> '755' nothing happens by starting the computer.
So i remember i had red by given' that command 'chmod -x <script>' it will be kept from starting at boot, so i thought the other way '+x' will put it at boot.
[" The command:
chmod -x /etc/rc.d/filename
will keep scripts from running at start time. Keep only what you need, the rest is just weighing you down." from: "Welcome to My Slackware Site".]
to make a program executable, you are correct in using "chmod +x filename". But to get Slackware to recognize the script and run it, you have to tell it to do so. The easiest way is to edit rc.local and add the script in there with something like:
Code:
if [ -x /etc/rc.d/rc.myscript ]; then
/etc/rc.d/rc.myscript
fi
It checks to see if rc.myscript is executable and if so, it executes it. I know you didn't want a solution where you had to write to rc.local, but I'm not sure if there is another way.
bruce@silas:~$ less /etc/rc.d/rc.M
#!/bin/sh
#
# rc.M This file is executed by init(8) when the system is being
# initialized for one of the "multi user" run levels (i.e.
# levels 1 through 6). It usually does mounting of file
# systems et al.
#
# Version: @(#)/etc/rc.d/rc.M 2.23 Wed Feb 26 19:20:58 PST 2003
#
# Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# Heavily modified by Patrick Volkerding <volkerdi@slackware.com>
#
# Tell the viewers what's going to happen.
echo "Going multiuser..."
<snip>
And "tho" would be a vernacular or slang for "though".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.