Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
5bad66ba
Commit
5bad66ba
authored
Jun 07, 2010
by
Daniel Lezcano
Committed by
Daniel Lezcano
Jun 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ubunutu - fix ssh runlevel stop condition
The default ssh upstart configuration makes the daemon to respawn either if we are shutdowning. Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
bc24fe4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
lxc-ubuntu.in
templates/lxc-ubuntu.in
+31
-0
No files found.
templates/lxc-ubuntu.in
View file @
5bad66ba
...
...
@@ -66,6 +66,37 @@ script
end script
EOF
# fix buggus runlevel with sshd
cat
<<
EOF
>
$rootfs
/etc/init/ssh.conf
# ssh - OpenBSD Secure Shell server
#
# The OpenSSH server provides secure shell access to the system.
description "OpenSSH server"
start on filesystem
stop on runlevel [!2345]
expect fork
respawn
respawn limit 10 5
umask 022
# replaces SSHD_OOM_ADJUST in /etc/default/ssh
oom never
pre-start script
test -x /usr/sbin/sshd || { stop; exit 0; }
test -e /etc/ssh/sshd_not_to_be_run && { stop; exit 0; }
test -c /dev/null || { stop; exit 0; }
mkdir -p -m0755 /var/run/sshd
end script
# if you used to set SSHD_OPTS in /etc/default/ssh, you can change the
# 'exec' line here instead
exec /usr/sbin/sshd
EOF
cat
<<
EOF
>
$rootfs
/etc/init/console.conf
# console - getty
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment