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
594 stars 65 forks source link

Support for HOME environment variable #9

Closed morrisonbrett closed 9 years ago

morrisonbrett commented 9 years ago

I have a requirement to run a node app as a particular user. I had to manually modify your generated .conf file and add the line:

env HOME=/home/myusername

to get my node app to run in the proper context.

Would be great if forever-service supported adding this line.

arvind-agarwal commented 9 years ago

So you want ability to create arbitrary env variables to be provisioned in init script. Will consider it but right now cannot provide an ETA. Meanwhile if you can send me a pull request I will be happy to add it.

arvind-agarwal commented 9 years ago

@morrisonbrett with the new pull request from @AshyIsMe merged in 0.4.3, I am closing this request now.

morrisonbrett commented 9 years ago

Thanks guys!