Switch to update-rc.d for ubuntu-trusty

We want to stop puppet service from being enabled on boot, so use the
update-rc.d command. Otherwise we get the following errors:

`service puppet disable` runs failed.
Usage: /etc/init.d/puppet {start|stop|status|restart|force-reload|reload}

Change-Id: Ie0c6366284de156151e6831de16579321e5d7bef
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
dongwenjuan 2017-04-21 15:36:55 +08:00 committed by Paul Belanger
parent 474e8d914c
commit d3ca95375b
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ EOF
if [ -f /bin/systemctl ]; then
systemctl disable puppet
else
service puppet disable
update-rc.d -f puppet disable
fi
}