Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

put on hold as unclear what you're asking by Jeff Schaller, MelBurslan, Kusalananda, G-Man, mdpc 23 hours ago

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the 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