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