Question: how to run thyme as a daemon for OSX?
alok opened this issue · 7 comments
^The question title. I'm running OSX 10.11.6, to be specific.
I usually just stick it in a screen session and then detach screen.
So for example I'd execute screen
, hit enter, type while true; do thyme track -o thyme.json; sleep 30s; done;
, enter, ctrl-a d
and then you can close terminal and it'll run in the background. I'd like to know if there's a nicer way to do that though.
I just use nohup right now, but I'd prefer a proper daemon that restarts
itself.
On Tue, Nov 15, 2016 at 4:14 PM Decagon notifications@github.com wrote:
I usually just stick it in a screen session and then detach screen.
So for example I'd execute screen, hit enter, type while true; do thyme
track -o thyme.json; sleep 30s; done;, enter, ctrl-a d and then you can
close terminal and it'll run in the background. I'd like to know if there's
a nicer way to do that though.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#78 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AH8KTMKZI0c2RMRs6wFd5AZHEJV869K1ks5q-krqgaJpZM4KzE7K
.
- Alok
I don't use OS X as my primary dev environment, but we'd love to accept a PR for this functionality if anyone has a setup that works for them right now
I have the same question. I use Ubuntu 16.10. As far as I can tell, there is no daemon available on Linux either, correct?
I need to use the following command to run Thyme in the background, correct?
while true; do thyme track -o thyme.json; sleep 30s; done;
Correct. There probably should be a daemon, but I haven't gotten around to writing it.
I think on OSX this should be possible with launchctl / launchd. launchd is intensely oblique and weird unless you are used to editing plists, I recommend Lingon (easy to use but costs 10€), LaunchControl (free but I've never gotten it to work reliably), or some other assistance. There's an informative page here if you feel like fighting with it longer than I did.
Thanks for the tip! At the moment, I don't have enough spare time to actively work on this project, but I welcome pull requests!