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

Need help with logs #42

Open haxecoder opened 8 years ago

haxecoder commented 8 years ago

I really didnt understand how to remap log file. Its going to var/log/$appname$.log by default. Please, can you explain how to make log being saved to different location. May be its better to include that info to readme.

arvind-agarwal commented 8 years ago

@AlexFrost47rus for now /var/log is fixed and cannot be changed, there is also logrotation script which refers to that path. What is your motivation to keep log somewere else?

haxecoder commented 8 years ago

I have many applications with different environment but with same name. It is more comfortable to hold their logs at separate folders, such as "var/log/firstEnv/app_1,2,3,4", "var/log/secondEnv/app_1,2,3,4". Basically its not a big problem but forever (not service) is available to do that thing. So i was puzzled why forever-service cannot do that. It became clear with your answer, thank you. I wonder if feature to customize log path would be added.

arvind-agarwal commented 8 years ago

Ok, I will consider it in subsequent updates. Meanwhile if you want to send me a pull request for it, i would be happy to merge it.

haxecoder commented 8 years ago

Big thanks for your response! And i will try to understand how forever-service works, its really new thing for me :)