go-gitea / homebrew-gitea

Gitea: Homebrew, moved to https://gitea.com/gitea/homebrew-gitea
https://gitea.io
MIT License
19 stars 22 forks source link

Integrate a launchd config #1

Open tboerger opened 8 years ago

tboerger commented 8 years ago

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!](https://www.bountysource.com/issues/39575640-integrate-a-launchd-config?utm_campaign=plugin&utm_content=tracker%2F49155492&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F49155492&utm_medium=issues&utm_source=github).
lunny commented 8 years ago

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?

tboerger commented 8 years ago

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

bySabi commented 7 years ago

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

lunny commented 7 years ago

@bySabi please do it.

bySabi commented 7 years ago

@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.

lafriks commented 7 years ago

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

tboerger commented 7 years ago

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

bySabi commented 7 years ago

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.

tboerger commented 7 years ago

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

bySabi commented 7 years ago

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

tboerger commented 7 years ago

@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.

bySabi commented 7 years ago

Ah, great!!

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