Slackware services problem
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. Thanks. |
That was a psychedelic experience :)
I assume that you're trying to start some deamon(s) that aren't part of slackware? Create the respective file manually, and call it from /etc/rc.d/rc.local Cheers, Tink |
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 |
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 Skill + 1pts :D |
Quote:
Code:
su |
Quote:
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. How can I fix this. Please. Thanks. |
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. |
Make sure:
Code:
if [ -x /etc/rc.d/rc.local ]; then |
Thanks PDock, Jeiku and all members,
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. 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. Thanks... |
Very strange.... glad to hear you got it working
|
All times are GMT -5. The time now is 11:38 PM. |