allow controlling how to restart postgres

fixes phlipper/chef-postgresql#83

do not merge yet, i have not actually tested this.