aboutsummaryrefslogtreecommitdiff
path: root/scripts/init
diff options
context:
space:
mode:
authorafilippov1985 <afilippov1985@users.noreply.github.com>2016-12-21 12:38:07 +0400
committer无闻 <u@gogs.io>2016-12-21 03:38:07 -0500
commit04fbfad2d4b7ac32b536aa6d2ecf33202d8d0217 (patch)
tree74f3d4ac0fbe9e7cf85d5fe82fc5f2e2db282bcd /scripts/init
parentbab051a8c17324e616d2fd649f1de9f36992ecaa (diff)
init script for gentoo (#3761)
Diffstat (limited to 'scripts/init')
-rw-r--r--scripts/init/gentoo/gogs16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/init/gentoo/gogs b/scripts/init/gentoo/gogs
new file mode 100644
index 00000000..4507c067
--- /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
+}