Logstash 2.2.0 File Input ignores sincedb_path option when running as a service

This is with Logstash 2.2.0

I have the following input in my configuration file:

input { file { path => /opt/logstash/file.txt start_position => "beginning" sincedb_path => "/opt/logstash/sincedb" } }

However, when I run it as a service (Centos 6), it still complains about $SINCEDB_PATH or $HOME not being set. I'd rather not manually set the environment variable in the init script. Why doesn't this work?

Please help!
Thank you very much!

same problem occurred when I run Logstash 2.2.1 as a service (Centos 7)

my configuration file:
input {
file {
path => "/var/log/secure"
type => "system"
sincedb_path => "/tmp/sincedb"
start_position => "beginning"
}
}

error messages:
Feb 14 09:30:00 elk logstash: {:timestamp=>"2016-02-14T09:30:00.066000+0800", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::File path=>["/var/log/secure"], type=>"system", sincedb_path=>"/tmp/sincedb", start_position=>"beginning", codec=><LogStash::Codecs::Plain charset=>"UTF-8">, stat_interval=>1, discover_interval=>15, sincedb_write_interval=>15, delimiter=>"\n", ignore_older=>86400, close_older=>3600>\n Error: No HOME or SINCEDB_PATH set in environment. I need one of these set so I can keep track of the files I am following.", :level=>:error}
Feb 14 09:30:01 elk logstash: {:timestamp=>"2016-02-14T09:30:01.069000+0800", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::File path=>["/var/log/secure"], type=>"system", sincedb_path=>"/tmp/sincedb", start_position=>"beginning", codec=><LogStash::Codecs::Plain charset=>"UTF-8">, stat_interval=>1, discover_interval=>15, sincedb_write_interval=>15, delimiter=>"\n", ignore_older=>86400, close_older=>3600>\n Error: No HOME or SINCEDB_PATH set in environment. I need one of these set so I can keep track of the files I am following.", :level=>:error}
Feb 14 09:30:02 elk logstash: {:timestamp=>"2016-02-14T09:30:02.071000+0800", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::File path=>["/var/log/secure"], type=>"system", sincedb_path=>"/tmp/sincedb", start_position=>"beginning", codec=><LogStash::Codecs::Plain charset=>"UTF-8">, stat_interval=>1, discover_interval=>15, sincedb_write_interval=>15, delimiter=>"\n", ignore_older=>86400, close_older=>3600>\n Error: No HOME or SINCEDB_PATH set in environment. I need one of these set so I can keep track of the files I am following.", :level=>:error}

This looks like a bug that's quite easy to reproduce but I can't figure out why it happens. I've filed https://github.com/logstash-plugins/logstash-input-file/issues/101 to get the matter investigated.