LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-26-2012, 09:01 AM   #1
BerzinTehvs
Member
 
Registered: Mar 2005
Location: Latvia
Distribution: Slackware
Posts: 63

Rep: Reputation: 17
Starting services from rc.M


Hi!

I have a problem starting all spam-fighting services from rc.M - currently I have issues with DCC and SpamAssassin - while it is possible to start both from console using provided or community start scripts, when I put them into rc.M (in a way like a lot of services there), the rc.M dies on either rcDCC or rc.spamd with no msg anywhere.
 
Old 12-26-2012, 09:21 AM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
It could be a syntax error. Could you post what you put into the rc.M file?

In general you should use /etc/rc.d/rc.local for starting services that you add to your system. That way your custom services will not get overwritten if and when rc.M gets updated. You also may be having a problem because services on which your custom service depends have not been launched yet. rc.local gets run last so if you put things there you are sure that the system is "ready" before your custom services get launched.

Brian
 
Old 12-26-2012, 09:23 AM   #3
ml4711
Member
 
Registered: Aug 2012
Location: Ryomgård, Danmark
Distribution: Slackware64
Posts: 146

Rep: Reputation: 103Reputation: 103
If you source your start script from rc.M,
and this start script have an exit command, rc.M is the one, that exits.

But why not start those services from rc.local or with the sysvinit system,
which both are sourced from rc.M

It seems those script you want to run, have an exit command somewhere.
I's good enough, but then you have to call it and NOT source it from
the calling script!

Enjoy
 
Old 12-26-2012, 09:31 AM   #4
BerzinTehvs
Member
 
Registered: Mar 2005
Location: Latvia
Distribution: Slackware
Posts: 63

Original Poster
Rep: Reputation: 17
P.S. starting spamassassin not by script (provided along with spamassassin) but by explicit command from rc.M works.
 
Old 12-26-2012, 10:03 AM   #5
ml4711
Member
 
Registered: Aug 2012
Location: Ryomgård, Danmark
Distribution: Slackware64
Posts: 146

Rep: Reputation: 103Reputation: 103
If you from rc.M call the start script like here

Code:
  /etc/init.d/slackware-rc-script.sh
it works, but if you call it in this way (you source it)

Code:
 . /etc/init.d/slackware-rc-script.sh
The "exit 0" at the end of slackware-rc-script.sh will terminate the rc.M script
 
  


Reply



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
Starting Services Automatically Arty Ziff Linux - Server 2 10-09-2009 12:50 AM
Starting services madivad Solaris / OpenSolaris 3 03-18-2008 07:27 PM
Starting services tstuart Linux - Newbie 5 09-07-2006 08:05 AM
FreeBSD starting services reddazz *BSD 4 04-17-2005 10:14 AM
Starting Services InEeDhElPlInUx Linux - Newbie 9 11-06-2003 11:57 AM

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

All times are GMT -5. The time now is 05:42 PM.

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