Basic Service File
jgarte opened this issue · comments
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?
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