Explorar el Código

init script for gentoo (#3761)

afilippov1985 hace 8 años
padre
commit
04fbfad2d4
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. 16 0
      scripts/init/gentoo/gogs

+ 16 - 0
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
+}