zapty / forever-service

Provision node script as a service via forever, allowing it to automatically start on boot, working across various Linux distros and OS
https://github.com/zapty/forever-service
MIT License
595 stars 65 forks source link

User dir not set #17

Closed vmatekole closed 9 years ago

vmatekole commented 9 years ago

When running a nodejs service via forerver-service, the following application - https://github.com/bitpay/insight-api/search?utf8=%E2%9C%93&q=getUserHome%28%29 attempts to retrieve the home dir of the user, resulting in 'undefined' and thus related database files are saved in working dir, under a dir 'undefined'.

arvind-agarwal commented 9 years ago

Please look at #9 (Support for HOME environment variable)

arvind-agarwal commented 9 years ago

Basically you can use -e parameter to specify environment variables.

arvind-agarwal commented 9 years ago

@vmatekole is your problem resolved? BTW there is a new build 0.4.4, which fixes ubuntu specific env variable issue.

vmatekole commented 9 years ago

@arvind-agarwal issue is solved. Danke!