diff options
author | Colin Watson <cjwatson@debian.org> | 2014-02-12 12:16:35 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-02-12 12:16:40 +0000 |
commit | a7ab96dac4597c0c34ffe22a5d92a83a2e579edf (patch) | |
tree | d97cf8c0ac45d3388ce848bab804729f66e70560 /debian/openssh-server.ssh.upstart | |
parent | 0cf4774e31e0a190a2399591a99f6a05c948f268 (diff) |
Remove unnecessary /dev/null tests
Remove tests for whether /dev/null is a character device from the Upstart
job and the systemd service files; it's there to avoid a confusing failure
mode in daemon(), but with modern init systems we use the -D option to
suppress daemonisation anyway.
Diffstat (limited to 'debian/openssh-server.ssh.upstart')
-rw-r--r-- | debian/openssh-server.ssh.upstart | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/debian/openssh-server.ssh.upstart b/debian/openssh-server.ssh.upstart index 10ab744f1..b34cbff5d 100644 --- a/debian/openssh-server.ssh.upstart +++ b/debian/openssh-server.ssh.upstart | |||
@@ -20,7 +20,6 @@ console none | |||
20 | pre-start script | 20 | pre-start script |
21 | test -x /usr/sbin/sshd || { stop; exit 0; } | 21 | test -x /usr/sbin/sshd || { stop; exit 0; } |
22 | test -e /etc/ssh/sshd_not_to_be_run && { stop; exit 0; } | 22 | test -e /etc/ssh/sshd_not_to_be_run && { stop; exit 0; } |
23 | test -c /dev/null || { stop; exit 0; } | ||
24 | 23 | ||
25 | mkdir -p -m0755 /var/run/sshd | 24 | mkdir -p -m0755 /var/run/sshd |
26 | end script | 25 | end script |