From 11df7ebfc5013ce6acc302fa7808f9c7cbe684de Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 22 Dec 2016 17:39:17 +0800 Subject: [PATCH] init script gentoo (#447) * init script for gentoo (#3761) * replace Gogs to Gitea * remove override port number * remove port --- scripts/init/gentoo/gitea | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/init/gentoo/gitea diff --git a/scripts/init/gentoo/gitea b/scripts/init/gentoo/gitea new file mode 100644 index 0000000000..d8c150d417 --- /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 +}