Permalink
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 606 Bytes
#!/bin/bash
# Script generated by Puppet.
#
# Use it to test if your application runs as expected.
#
<% if @settings['package_name'] and @settings['package_name'] != "" -%>
echo "# Package status"
<%= @options['check_package_command'] %> 2> /dev/null
<% end -%>
<% if @settings['service_name'] and @settings['service_name'] != "" -%>
echo
echo "# Service status"
<%= @options['check_service_command'] %>
<% end -%>
<% if ! @settings['service_name'] and ! @settings['service_name'] != "" and ! @settings['package_name'] and ! @settings['package_name'] != "" -%>
echo "Nothing to test"
exit 99
<% end -%>