thuehlinger / daemons

Ruby daemons gem official repository
MIT License
648 stars 71 forks source link

Fixed two simple pidfile errors #56

Closed intentionaccident closed 7 years ago

intentionaccident commented 7 years ago

Exception throw is pretty self explanatory. The file mode change is important because creating a deamon with call or new has no script file so it has to use the dir option for pidfile location. The default is to use current directory since options[:dir] defaults to '' in application_group and File.expand_path '' returns current directory.