3 answers
[root@mailcenter ldap]# chkconfig --list sshd sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
as you can see, at levels 2-5 in autostart ..
- oneand how did it happen that ubuntu has chkconfig? - ArcherGodson
- Why not? bdstore @ bdstore: ~ $ uname -a Linux bdstore 3.2.0-34-generic # 53-Ubuntu SMP Thu Nov 15 10:48:16 UTC 2012 x86_64 x86_64 x86_64 GNU / Linux bdstore: ~ $ whereis chkconfig chkconfig: / sbin / chkconfig /usr/share/man/man8/chkconfig.8.gz - Anton Shevtsov
- cool)) I really don’t have it, and I thought it was a pure rpm base tool. it turns out you can put. and cat / etc / issue can be looked? - ArcherGodson
- please bdstore @ bdstore: ~ $ cat / etc / issue Ubuntu 12.04.1 LTS \ n \ l well, if you do not have chkconfig, look at bdstore @ bdstore: ~ $ grep Default-Start /etc/init.d/ssh # Default -Start: 2 3 4 5 - Anton Shevtsov
- Yeah, it works) - ArcherGodson
|
sudo update-rc.d ssh defaults
|
To view the status, run sudo reboot
, and after rebooting the machine -
sudo service ssh status
|