diff --git a/contrib/dinit/gitea b/contrib/dinit/gitea new file mode 100644 index 0000000000..3d140f82b4 --- /dev/null +++ b/contrib/dinit/gitea @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: CDDL-1.0 +# vim: ft=confini +command = /usr/local/bin/gitea web --config /etc/gitea/app.ini +# If using MariaDB +# need = mariadb +# If using PostgreSQL +# need = postgresql +# If using Redis +# need = redis +restart = on-failure +restart-delay = 2 +run-as = git +smooth-recovery = yes +type = process