LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-30-2005, 11:42 PM   #1
bluesheet
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Rep: Reputation: 15
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.
 
Old 07-01-2005, 12:05 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 07-01-2005, 12:05 AM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
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
 
Old 07-01-2005, 01:31 AM   #4
bluesheet
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Original Poster
Rep: Reputation: 15
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

Last edited by bluesheet; 07-01-2005 at 02:44 AM.
 
Old 07-01-2005, 03:06 AM   #5
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
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
You have to make rc.local executable:
Code:
su
type root password
chmod +x /etc/rc.d/rc.local
 
Old 07-01-2005, 03:45 AM   #6
bluesheet
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Original Poster
Rep: Reputation: 15
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.
 
Old 07-01-2005, 05:09 AM   #7
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
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.
 
Old 07-01-2005, 07:51 AM   #8
Jeiku
Member
 
Registered: Jul 2005
Posts: 64

Rep: Reputation: 18
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
 
Old 07-01-2005, 09:44 PM   #9
bluesheet
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Original Poster
Rep: Reputation: 15
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...
 
Old 07-02-2005, 03:18 AM   #10
Jeiku
Member
 
Registered: Jul 2005
Posts: 64

Rep: Reputation: 18
Very strange.... glad to hear you got it working
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
services for desktop slackware pete_bogg Slackware 2 06-01-2005 05:22 PM
Edit startup services Slackware 10 thomasjor Slackware 4 09-07-2004 09:49 AM
Starting Services on Slackware 9.1 granatica Linux - General 2 03-16-2004 08:49 PM
Slackware 9: Perminatly stop services? m3kgt Slackware 1 10-23-2003 03:56 PM
Slackware 9/services wr3ck3d Linux - Security 2 03-26-2003 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration