Merge "Fix dib-init-system for Debian Jessie and Debian Stretch"
This commit is contained in:
		| @@ -6,7 +6,10 @@ fi | ||||
| set -eu | ||||
| set -o pipefail | ||||
|  | ||||
| if [[ -f /usr/bin/systemctl ]]; then | ||||
| # Debian Jessie and Debian Stretch use /bin/systemctl. | ||||
| # (/sbin/init is only available if systemd-sysv is installed.) | ||||
|  | ||||
| if [ -f /usr/bin/systemctl -o -f /bin/systemctl ]; then | ||||
|     echo "systemd" | ||||
| elif [[ -f /sbin/initctl ]]; then | ||||
|     echo "upstart" | ||||
|   | ||||
| @@ -0,0 +1,6 @@ | ||||
| --- | ||||
| fixes: | ||||
|   - dib-init-system did not correctly find the | ||||
|     init system for Debian Jessie and Debian Stretch. | ||||
|     This version also looks for /bin/systemctl as | ||||
|     as hint for systemd and fixes the problem. | ||||
		Reference in New Issue
	
	Block a user
	 Jenkins
					Jenkins