From ad7bbeb13376721599a71955c9e8d89508c1a7d9 Mon Sep 17 00:00:00 2001 From: KronoZed Date: Tue, 1 Nov 2016 07:06:40 +0300 Subject: [PATCH] Delete gogs.initd --- www-apps/gogs/files/gogs.initd | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 www-apps/gogs/files/gogs.initd diff --git a/www-apps/gogs/files/gogs.initd b/www-apps/gogs/files/gogs.initd deleted file mode 100644 index dafda29..0000000 --- a/www-apps/gogs/files/gogs.initd +++ /dev/null @@ -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 $? -}