made compatible with r_s2
Merge pull request #86 from papertrail/initd-pid-file-fix

Made compatible with r_s2