LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2010, 11:47 AM   #1
black669
LQ Newbie
 
Registered: Jul 2009
Posts: 23

Rep: Reputation: 15
Proftpd, ssh, webmin not starting at startup anymore


Hi everybody!!
I am using Ubuntu 9.10 and I have a problem with proftpd, ssh and webmin, they are not starting at startup anymore. I am absolutelly clueless how to fix this. The only way to start them remotely is by connecting with VNC to the computer and starting them via terminall.
If u can please help me in this matter...THX in advance!!!
 
Old 01-05-2010, 12:13 PM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
What changed between them starting at boot time and now?

How are you starting them? please show the command line that you are using.
 
Old 01-05-2010, 12:46 PM   #3
black669
LQ Newbie
 
Registered: Jul 2009
Posts: 23

Original Poster
Rep: Reputation: 15
I really don't know what changed that they don't start, and I just realised that cupsd isn't starting.
I can start all of them by accessing terminal:

Code:
sudo /etc/init.d/ssh start
sudo /etc/init.d/proftpd start
sudo /etc/init.d/webmin start
and so on...
 
Old 01-05-2010, 01:23 PM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Does the following return anything:
Code:
ls -l /etc/rc*.d/* |grep 'init.d/ssh'
The startup/shutdown scripts in /etc/init.d are called by links in /etc/rcn.d (where n is the run-level)

links that start S are to start the service, links that start K are to stop the service
 
Old 01-05-2010, 01:35 PM   #5
black669
LQ Newbie
 
Registered: Jul 2009
Posts: 23

Original Poster
Rep: Reputation: 15
This is the listing:
Code:
lrwxrwxrwx 1 root root    13 2010-01-05 21:27 /etc/rc0.d/K20ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root    13 2010-01-05 21:27 /etc/rc1.d/K20ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root    13 2010-01-05 21:27 /etc/rc2.d/S20ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root    13 2010-01-05 21:27 /etc/rc3.d/S20ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root    13 2010-01-05 21:27 /etc/rc4.d/S20ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root    13 2010-01-05 21:27 /etc/rc5.d/S20ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root    13 2010-01-05 21:27 /etc/rc6.d/K20ssh -> ../init.d/ssh
 
Old 01-05-2010, 02:10 PM   #6
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
OK, that looks fine

What is your runlevel set to?
Code:
runlevel
Additionally, what permissions are shown with:
Code:
ls -l /etc|grep rc..d
 
Old 01-05-2010, 02:27 PM   #7
black669
LQ Newbie
 
Registered: Jul 2009
Posts: 23

Original Poster
Rep: Reputation: 15
Code:
runlevel
Code:
unknown
Code:
ls -l /etc|grep rc..d
Code:
drwxr-xr-x   2 root    root      4096 2010-01-05 21:27 rc0.d
drwxr-xr-x   2 root    root      4096 2010-01-05 21:27 rc1.d
drwxr-xr-x   2 root    root      4096 2010-01-05 21:27 rc2.d
drwxr-xr-x   2 root    root      4096 2010-01-05 21:27 rc3.d
drwxr-xr-x   2 root    root      4096 2010-01-05 21:27 rc4.d
drwxr-xr-x   2 root    root      4096 2010-01-05 21:27 rc5.d
drwxr-xr-x   2 root    root      4096 2010-01-05 21:27 rc6.d
drwxr-xr-x   2 root    root      4096 2009-12-27 21:08 rcS.d
 
Old 01-05-2010, 02:54 PM   #8
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
runlevel unknown?

What is the output from:
Code:
ls -l /var/run/utmp
EDIT..

Change to runlevel 2 (should be the default):
Code:
sudo init 2
Then type runlevel

Last edited by Disillusionist; 01-05-2010 at 02:56 PM.
 
Old 01-05-2010, 02:57 PM   #9
black669
LQ Newbie
 
Registered: Jul 2009
Posts: 23

Original Poster
Rep: Reputation: 15
Yes, it seems strange to me too that runlevel is unknown?!

Here's what I got:

Code:
-rw-rw-r-- 1 root utmp 1920 2010-01-05 22:48 /var/run/utmp
 
Old 01-05-2010, 03:19 PM   #10
black669
LQ Newbie
 
Registered: Jul 2009
Posts: 23

Original Poster
Rep: Reputation: 15
OK, now runlevel it's
Code:
N 2
and the listing from
Code:
ls -l /var/run/utmp
is :
Code:
-rw-rw-r-- 1 root utmp 4992 2010-01-05 23:17 /var/run/utmp
 
Old 01-05-2010, 03:24 PM   #11
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
did you try
Code:
sudo init 2
runlevel
?

This should run the startup scripts for runlevel 2
 
Old 01-05-2010, 03:28 PM   #12
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Are you able to reboot the machine?

If so, what is the output from runlevel after rebooting?
 
Old 01-05-2010, 03:35 PM   #13
black669
LQ Newbie
 
Registered: Jul 2009
Posts: 23

Original Poster
Rep: Reputation: 15
I rebooted but the runlevel is still unknown

Sorry if I'm giving you a headache, am I doing something wrong?

Last edited by black669; 01-05-2010 at 03:39 PM.
 
Old 01-05-2010, 03:48 PM   #14
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
I just noticed a difference between Ubuntu 9.04 and Ubuntu 9.10

Did this issue occur after upgrading to the latest version?

does the /etc/init/rc.conf file exist?

Should look like:
Code:
# rc - System V runlevel compatibility
#
# This task runs the old System V-style rc script when changing between
# runlevels.

description     "System V runlevel compatibility"
author          "Scott James Remnant <scott@netsplit.com>"

start on runlevel [0123456]
stop on runlevel [!$RUNLEVEL]

export RUNLEVEL
export PREVLEVEL

task

exec /etc/init.d/rc $RUNLEVEL
 
Old 01-05-2010, 04:01 PM   #15
black669
LQ Newbie
 
Registered: Jul 2009
Posts: 23

Original Poster
Rep: Reputation: 15
I have installed Ubuntu 9.10 the first day it was out, and the first thing I did was to setup the ftp server, and connect through ssh. Everithing went fine untill a few days ago...maybe a week, i don't remember exactly.
Here's the output from /etc/init/cr.conf file:
Code:
# rc - System V runlevel compatibility
#
# This task runs the old System V-style rc script when changing between
# runlevels.

description     "System V runlevel compatibility"
author          "Scott James Remnant <scott@netsplit.com>"

start on runlevel [0123456]
stop on runlevel [!$RUNLEVEL]

export RUNLEVEL
export PREVLEVEL

task

exec /etc/init.d/rc $RUNLEVEL
 
  


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
can not connect to squid cache manager via webmin anymore lovswr Linux - Software 3 04-24-2012 01:44 AM
ProFTPD- > "Starting proftpd: [FAILED]" FC6 Webmin germansoccer6113 Linux - Server 2 01-07-2009 11:19 AM
Swat and webmin don't recognize anyone anymore PostPCMan Linux - Software 0 02-11-2007 12:54 AM
ProFTPD & Webmin Hum4ngus Linux - Newbie 11 09-06-2005 03:23 PM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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