Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I recently installed Parsix (Debian) on my system, and I've been struggling to figure out how to autostart my services. Of the list of services that don't run and should run are:

  • ssh
  • apache
  • mysql

They run easily enough with the generic: service ssh start, and when I run

> update-rc.d ssh defaults
 System startup links for /etc/init.d/ssh already exist.

As an added note:

> service ssh status
[FAIL] sshd is not running ... failed!

Edit: ls /etc/rc*.d/*ssh* produces

/etc/rc0.d/K50ssh  /etc/rc2.d/K50ssh  /etc/rc4.d/K50ssh  /etc/rc6.d/K50ssh
/etc/rc1.d/K50ssh  /etc/rc3.d/K50ssh  /etc/rc5.d/S50ssh

(does K mean "Kill"??)
Also, the current run-level is set to 5.

share|improve this question
1  
Can you post the output of ls /etc/rc*.d/*ssh*? –  Karlson Jan 2 '13 at 22:18
    
@Karlson... hmm I think you might be on to something –  Rasman Jan 2 '13 at 22:40
    
You seem to have only the kill scripts. Is openssh-server or similar installed? –  Karlson Jan 3 '13 at 1:52
    
@Karlson rc5 is Start, and the openssh works when I start the server –  Rasman Jan 3 '13 at 2:00
    
Sorry didn't pay attention. That means that your default runlevel isn't 5. When the machine comes up login as root and do who -r –  Karlson Jan 3 '13 at 2:17
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.