ssh init should only output one line if not to be run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Fix Released
|
Wishlist
|
Colin Watson |
Bug Description
/etc/init.d/ssh should not output two lines if ssh is not supposed to load (/etc/ssh/
Trivial patch is below. It occurs to me, however, that this should be set in /etc/default/ssh like most other packages do, instead of using the sshd_not_to_be_run file. Should forward this idea to debian upstream.
Also, is it really necessary to issue the warning message when ssh is configured not to run? I don't think so.
--- ssh-orig 2006-03-09 20:04:26.000000000 -0600
+++ ssh 2006-03-09 20:17:22.000000000 -0600
@@ -17,3 +17,2 @@
if [ -e /etc/ssh/
- log_end_msg 0
@@ -41,4 +40,4 @@
start)
- log_begin_msg "Starting OpenBSD Secure Shell server..."
+ log_begin_msg "Starting OpenBSD Secure Shell server..."
With the split of client and server in different packages sshd_not_to_be_run shouldn't be necessary anymore. If you don't want the server to be running, just don't install the server package.