dominictarr / npmd

MIT License
450 stars 37 forks source link

npmd plist file #36

Open trodrigues opened 10 years ago

trodrigues commented 10 years ago

I've created a plist file to run npmd sync in the background. What would be the best way to contribute this back to the problem?

I think it would be useful because plist files tend to be a bit tricky in the sense that you need to specify full paths for everything and it might catch many off guard (I surely struggled with this for a bit).

My file is here: https://gist.github.com/trodrigues/7626555

dominictarr commented 10 years ago

hmm, how do you use a plist file? the simplest would be to have a link in the readme to your gist, and add a bash script to install the service (or however you do it)?

maybe later, some npmd command to add services to various platforms?

trodrigues commented 10 years ago

Usually you just need to copy the file to ~/Library/LaunchAgents and then there are commands to load/unload it, but that would be entirely out of the scope of this.

I was actually thinking of having a directory on the npmd project, something like startup_scripts where people could add startup scripts for various startup systems (launchd, init.d, upstart) and then it would be up to the user to set it up on their system.

dominictarr commented 10 years ago

Okay, sure.

Can you also provide a readme that explains how to set it up?