~evarlast/ubuntu/trusty/launchpad/trunk

« back to all changes in this revision

Viewing changes to debian/logstash.postinst

  • Committer: jrwren at xmtp
  • Date: 2015-05-06 17:17:40 UTC
  • Revision ID: jrwren@xmtp.net-20150506171740-6s3ie8zqlsa0p7us
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if [ -x "/etc/init.d/logstash" ]; then
 
2
        update-rc.d logstash defaults >/dev/null
 
3
fi
 
4
if [ -x "/etc/init.d/logstash" ] || [ -e "/etc/init/logstash.conf" ]; then
 
5
        invoke-rc.d logstash start || exit $?
 
6
fi
 
7
mkdir -p /var/log/logstash
 
8
chown -R logstash:logstash /var/log/logstash