diff --git a/scripts/init/gentoo/gitea b/scripts/init/gentoo/gitea new file mode 100644 index 000000000000..d8c150d417fa --- /dev/null +++ b/scripts/init/gentoo/gitea @@ -0,0 +1,15 @@ +#!/sbin/openrc-run + +DIR=/home/git/gitea +USER=git + +start_stop_daemon_args="--user ${USER} --chdir ${DIR}" +command="${DIR}/gitea" +command_args="web" +command_background=yes +pidfile=/var/run/gitea.pid + +depend() +{ + need net +}