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

Service Name must be first argument #102

Open LajosPolya opened 5 years ago

LajosPolya commented 5 years ago

If I run the command:

sudo forever-service install -s app/app.js --logrotateFrequency daily --logrotateCompress appService

I receive an "Invalid Arguments!" error. I looked a little bit into the forever-service bin file and this is caused by "commander" not processing the arguments correctly.

However if I run sudo forever-service install appService -s app/app.js --logrotateFrequency daily --logrotateCompress then all is well.

One other thing to mention is that if "--logrotateCompress" is removed from the arguments then it doesn't matter where the service name is placed

Note: I am running Ubuntu 18.04