LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-12-2007, 04:52 AM   #1
tklima
LQ Newbie
 
Registered: Jan 2005
Posts: 16

Rep: Reputation: 0
Services in runlevel don't start automatically


Hi,
I have this problem.

My server runs in runlevel 2 by default (id:2:initdefault: in /etc/inittab)
I want to start some services in this runlevel, so I created symbolic links to /etc/init.d/ like this:


lrwxrwxrwx 1 root root 13 2007-11-26 16:27 S20ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root 13 2007-11-26 16:53 S23ntp -> ../init.d/ntp
lrwxrwxrwx 1 root root 17 2007-11-26 16:50 S20postfix ->../init.d/postfix
.
.
.

The problem is, that none of the services is started automatically after reboot. Is there any way how to make them start?

I am running debian 2.6.18-5-686 (Debian 2.6.18.dfsg.1-13etch4) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

Thanks for your answers.

Tom
 
Old 12-12-2007, 05:01 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
On Debian you should be able to start services on boot using update-rc.d e.g.
Code:
#update-rc.d postfix defaults
 
Old 12-12-2007, 05:19 AM   #3
tklima
LQ Newbie
 
Registered: Jan 2005
Posts: 16

Original Poster
Rep: Reputation: 0
this is what I get:
update-rc.d ssh defaults
System startup links for /etc/init.d/ssh already exist.

Symbolic links are already created but the services won't start
 
Old 12-12-2007, 05:25 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
What happens when you enter
Code:
#/etc/ini.d/ssh start
 
Old 12-12-2007, 05:30 AM   #5
tklima
LQ Newbie
 
Registered: Jan 2005
Posts: 16

Original Poster
Rep: Reputation: 0
the service starts without any problems
Starting OpenBSD Secure Shell server:
 
Old 12-12-2007, 05:41 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Give this a shot,
Code:
#update-rc.d -f ssh remove
#update-rc.d ssh defaults
If that does not work, then I am not sure what else to suggest.
 
  


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
start services at startup automatically merlin23 Linux - Newbie 10 06-30-2013 04:48 AM
Adding services to start automatically after reboot tractng Linux - Newbie 1 11-29-2007 04:07 PM
Services not starting in runlevel 3 JesusAddict3791 Linux - Newbie 4 04-26-2005 12:49 AM
Start services automatically (httpd & SMB) krazyglue Linux - Newbie 8 07-11-2004 03:48 AM
some services down after a change of runlevel zovres Linux - Newbie 5 10-15-2003 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:48 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