Let $X$ be a connected, oriented and aspherical (meaning $\pi_i(X) = 0$ for $i\geq 2$) manifold of dimension $n$, and $S$ a local coefficient system (i.e., a $\pi_1(X)$-module). If $X$ is closed, we have the well-known Poincaré duality: $$H^i(X;S) \cong H_{n-i}(X;S)\,.$$
My question is: for $X$ with boundary, do we have $$H^i(X,\partial X;S)\cong H_{n-i}(X;S)\;\textrm{ and }\; H_i(X,\partial X;S)\cong H^{n-i}(X;S)$$ extending the Lefschetz-Poincaré duality? If not, what would be a necessary condition for this to hold?
Thank you.