Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not stop hosts' SSH + mdadm services in cleanup procedure
The init script uses start-stop-daemon with the pidfile /var/run/sshd.pid. We can't just stop the service from outside the chroot because this terminates the process of the host system instead of the process *inside* the chroot. Thanks: Sebastian Pipping for debugging and bug report Fixes #63 (GH-37, PR 71)
- Loading branch information
f992b13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure the new approach works in practice? I wonder because at that point in time things like /dev and /proc are not mounted, if I am not mistaken.
f992b13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure? Nope, but it's better than doing nothing IMHO and shouldn't do any harm. (I'm not really happy about the cleanup procedure as it is, but we need to minimize the changes to have a chance for inclusion in jessie at all.)
f992b13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used something like this before:
I wouldn't use that in production maybe, but the approach could work if implemented well.
f992b13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's something reliable I'm happy to take it, this doesn't look like production ready, agreed. :)