LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware services problem (https://www.linuxquestions.org/questions/slackware-14/slackware-services-problem-338943/)

bluesheet 06-30-2005 11:42 PM

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.

Tinkster 07-01-2005 12:05 AM

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

gbonvehi 07-01-2005 12:05 AM

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

bluesheet 07-01-2005 01:31 AM

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:~#

Please give me some suggestion?? Thanks.


Skill + 1pts
:D

BroX 07-01-2005 03:06 AM

Quote:

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:~#

Please give me some suggestion?? Thanks.


Skill + 1pts
:D

You have to make rc.local executable:
Code:

su
type root password
chmod +x /etc/rc.d/rc.local


bluesheet 07-01-2005 03:45 AM

Quote:

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.

How can I fix this. Please.
Thanks.

PDock 07-01-2005 05:09 AM

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.

Jeiku 07-01-2005 07:51 AM

Make sure:

Code:

if [ -x /etc/rc.d/rc.local ]; then
  . /etc/rc.d/rc.local

Exists or is not commented out (#) in /etc/rc.d/rc.M

bluesheet 07-01-2005 09:44 PM

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.
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.

Thanks...

Jeiku 07-02-2005 03:18 AM

Very strange.... glad to hear you got it working


All times are GMT -5. The time now is 11:38 PM.