homebrew-gitea icon indicating copy to clipboard operation
homebrew-gitea copied to clipboard

Integrate a launchd config

Open tboerger opened this issue 8 years ago • 12 comments

Since we are packaging a daemon we should also provide a script to start this service on system start.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

tboerger avatar Nov 28 '16 08:11 tboerger

In fact, I don't like daemon in Mac. I like mysql.server start|stop script. So maybe we can gitea.web start|stop|restart?

lunny avatar Nov 28 '16 08:11 lunny

We can also provide a wrapper script that can do that but I think the majority prefers the launchd script :)

tboerger avatar Nov 28 '16 10:11 tboerger

launchd script should be on wiki. I have one that is working fine. I glad to contrib to this project

bySabi avatar Dec 01 '17 07:12 bySabi

@bySabi please do it.

lunny avatar Dec 01 '17 08:12 lunny

@lunny I don't know for sure, will be my first wiki on github, but probably the Wiki need to be enable on this repo and I will need write contrib rights.

bySabi avatar Dec 01 '17 11:12 bySabi

@bySabi submit change as PR to README.md, it think this would be ok place for this

lafriks avatar Dec 01 '17 12:12 lafriks

A launchd service definition should be integrated in to the formula, like https://github.com/kleister/homebrew-kleister/blob/master/kleister-api.rb#L64-L89

tboerger avatar Dec 01 '17 12:12 tboerger

I'm with @tboerger, a launchd plist creation must be integrated in to the formula with proper advice for launchctl load/unload PATH's for user intervention. This tips must be on wiki too, many users don't read brew installs output.

I also want to put a few general tips more appropriate for a wiki.

bySabi avatar Dec 01 '17 13:12 bySabi

I would prefer basic instructions within the readme, otherwise something on the docs instead of a wiki within this repo.

Edit: You can find the docs source at https://github.com/go-gitea/gitea/tree/master/docs

tboerger avatar Dec 01 '17 13:12 tboerger

@tboerger the tips that I'm talk are too brew/OSX related and probably fit better on a wiki.

bySabi avatar Dec 01 '17 13:12 bySabi

@tboerger the tips that I'm talk are too brew/OSX related and probably fit better on a wiki.

We got all documentation related to Gitea bundled on our documentation, so we can add another page dedicated to the macOS setup of Gitea.

tboerger avatar Dec 01 '17 13:12 tboerger

Ah, great!!

I will take a look at doc and see how can it fit better

bySabi avatar Dec 01 '17 13:12 bySabi