Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Service File #20

Open
jgarte opened this issue Aug 3, 2021 · 2 comments
Open

Basic Service File #20

jgarte opened this issue Aug 3, 2021 · 2 comments

Comments

@jgarte
Copy link

jgarte commented Aug 3, 2021

Hi, what would a basic service file fo smithy look like?

For example, with runit could it just be to start the server on boot?

#!/bin/sh

exec smithy serve --config config.yml 2>&1

I guess the service would also need to restart when a git repository is pushed to or should that be handled by a git hook instead?

What would be the ideal set up?

@pedrolucasp
Copy link
Contributor

pedrolucasp commented Aug 4, 2021 via email

@jgarte
Copy link
Author

jgarte commented Aug 5, 2021

On Tue, Aug 03, 2021 at 04:51:37PM -0700, jgart wrote: Hi, what would a basic service file fo smithy look like?
Depends on the platform you intend to run. For example, here's [1] my smithy openRC file (it's deployed on an Alpine machine). You can use openrc.run [2] to translate this into a systemd service file. Don't really know about runit though. [1]: https://git.eletrotupi.com/pacotes.eletrotupi.com/tree/master/pkgs/smithy/smithy.initd [2]: http://openrc.run/

Awesome! Thanks for sharing that. Great looking forge you got there 😄

The openrc app is really cool too. It probably wouldn't be too difficult to translate it to runit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants