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.
Dear all,
Slackware can control the services through "pkgtools" -> "services", but I can I add the new service "rc.xxx" into "pkgtools" -> "services", let us can easier to control the services during bootup.
I see no problem there. Basically what pkgtools -> services do is to change the files in /etc/rc.d to executables or non executables.
You can add your own services in /etc/rc.d/rc.local
Most users don't use that menu anyway, it's easier to do it with chmod
BUT, now I have a problem, I make a service on /etc/rc.d/rc.loacl, but it can't start during system booted, WHY??
In different dist. linux, we can only add the path of the program then it will run the program after bootup, why I can't
Code:
root@localhost:~# cat /etc/rc.d/rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
/usr/local/sbin/authdaemond start
root@localhost:~#
Originally posted by bluesheet OK, thanks all.
I understand.
BUT, now I have a problem, I make a service on /etc/rc.d/rc.loacl, but it can't start during system booted, WHY??
In different dist. linux, we can only add the path of the program then it will run the program after bootup, why I can't
Code:
root@localhost:~# cat /etc/rc.d/rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
/usr/local/sbin/authdaemond start
root@localhost:~#
Originally posted by LJSBrokken You have to make rc.local executable:
Code:
su
type root password
chmod +x /etc/rc.d/rc.local
Dear LJSBrokken,
thanks for you help first,
/etc/rc.d/rc.local already executable.
My system look like that, /etc/rc.d/rc.loacl will not run during system bootup, but when I login as root and run "root@localhost#/etc/rc.d/rc.local", then rc.local will work fine.
On boot a number of scripts are run. If all are successful then in Slackware's case /etc/rc.d/rc.local is the last one to run. Normally one script chains another or multiple scripts within itself. Problem is if one breaks/fails then ........
I suggest you look at /etc/rc.d/rc.cups and comment out the line that says 'exit 1' ie #exit 1.
Next step would be to add echo statements to the boot scripts to find which one in your case is failing.
I already check the /etc/rc.M, I am running init 3, so in /etc/rc.M, running rc.local was enable.
Code:
# Start the local setup procedure.
if [ -x /etc/rc.d/rc.local ]; then
. /etc/rc.d/rc.local
Slackware was using sysvinit for linux init, so after /sbin/init then the system will check the run level on /etc/inittab, then it run /etc/rc.d/rc.M, I already check the whole booting process, but rc.local still can't run automatically.
but I try to put the run rc.local statement in front of the statement run rc.httpd, then it's work, I think it is the script rc.httpd will cause this problem, it's that, after run rc.httpd, then it will exit the rc.local, so all the script under rc.httpd will not run.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.