I have explicit need to have ipfs daemon running all the time on OS X. Specifically I need to be ablt to access http api on 127.0.0.1:5001
For this I have included ipfs dist and LaunchAgent plist into installation, but I have encountered few issues:
- Explicit need to init the daemon before running it makes it harder for OS to keep track of the process since I’m forced to use script in which ipfs init && ipfs daemon are scripted. I can’t just feed launch agent the ‘ipfs daemon’ because it will fail if not init-ed. How to avoid it?
- After some time users have problems accessing http api because ipfs requres explicit permission to escalate DB version which cannot be done (as I run launchagent as root) by user and he doesn’t know about it. process fails on start
In general: what’s the best way to keep daemon alive (maybe use js version?), I just need persistent access to http api and users don’t care that daemon is failing, they only see my program not working and they won’t manage ipfs themselves