Commit 5598ccec authored by Gurvinder Singh's avatar Gurvinder Singh

added support for restart on newer version and able to boot once system restart

parent bdef0418
VERSION=0.3.1+uninett1
VERSION=0.3.1+uninett2
# By default, all dependencies (zeromq, etc) will be downloaded and installed
# locally. You can change this if you are deploying your own.
......@@ -47,7 +47,9 @@ vendor-clean:
rpm deb: PREFIX=/opt/logstash-forwarder
rpm deb: | build-all
fpm -s dir -t $@ -n logstash-forwarder -v $(VERSION) \
--replaces lumberjack \
--replaces logstash-forwarder \
--after-install logstash-forwarder.postinst \
--after-remove logstash-forwarder.remove \
--exclude '*.a' --exclude 'lib/pkgconfig/zlib.pc' \
--description "a log shipping tool" \
--url "https://github.com/elasticsearch/logstash-forwarder" \
......
#! /bin/sh
### BEGIN INIT INFO
# Provides: skeleton
# Provides: logstash-forwarder
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
......
/var/log/logstash-forwarder.log
{
rotate 7
rotate 5
daily
missingok
delaycompress
......
#! /bin/sh
update-rc.d logstash-forwarder defaults
service logstash-forwarder restart
#! /bin/sh
service logstash-forwarder stop
update-rc.d logstash-forwarder remove
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment