Delete gogs.initd

This commit is contained in:
KronoZed 2016-11-01 07:06:40 +03:00 committed by GitHub
parent 7805d350fc
commit ad7bbeb133
1 changed files with 0 additions and 33 deletions

View File

@ -1,33 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
runas=${runas:-gogs}
pidfile=${pidfile:-/var/run/gogs.pid}
work_dir=${work_dir:-/var/lib/gogs}
custom_dir=${custom_dir:-${work_dir}/custom}
depend() {
use net
after dns
}
start() {
ebegin "Starting Gogs: Go Git Service"
checkpath -d -m 0755 -o ${runas}:${runas} /var/lib/${runas}
start-stop-daemon --background --start --quiet \
--pidfile ${pidfile} --make-pidfile \
--user ${runas} --chdir ${work_dir} \
--exec env GOGS_WORK_DIR=${work_dir} \
GOGS_CUSTOM=${custom_dir} /usr/bin/gogs \
-- web
eend $?
}
stop() {
ebegin "Stopping Gogs: Go Git Service"
start-stop-daemon --stop --quiet --exec /usr/bin/gogs \
--pidfile ${pidfile} --name ${runas}
eend $?
}