1 |
commit: 960375d3fa39a1d4e7e26a260ec0f246af407bbe |
2 |
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Feb 14 19:16:04 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 14 21:39:45 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=960375d3 |
7 |
|
8 |
www-apps/tt-rss: remove unused init file |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/3971 |
11 |
|
12 |
www-apps/tt-rss/files/ttrssd.initd-r1 | 73 ----------------------------------- |
13 |
1 file changed, 73 deletions(-) |
14 |
|
15 |
diff --git a/www-apps/tt-rss/files/ttrssd.initd-r1 b/www-apps/tt-rss/files/ttrssd.initd-r1 |
16 |
deleted file mode 100644 |
17 |
index bceb9ffce2..0000000000 |
18 |
--- a/www-apps/tt-rss/files/ttrssd.initd-r1 |
19 |
+++ /dev/null |
20 |
@@ -1,73 +0,0 @@ |
21 |
-#!/sbin/openrc-run |
22 |
-# Copyright 1999-2013 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
-# $Id$ |
25 |
- |
26 |
-depend() { |
27 |
- need logger net |
28 |
- after postgres mysql |
29 |
-} |
30 |
- |
31 |
-LOGFILE=${LOGFILE:-"/var/log/ttrssd.log"} |
32 |
-TTRSSD_USER=${TTRSSD_USER:-"ttrssd"} |
33 |
-TTRSSD_GROUP=${TTRSSD_GROUP:-"ttrssd"} |
34 |
-INSTANCE_FOLDERS="cache lock feed-icons" |
35 |
- |
36 |
-checkconfig() { |
37 |
- local instance dir |
38 |
- |
39 |
- # check instances |
40 |
- if [ -z "${INSTANCE_DIRS}" ]; then |
41 |
- eerror "There is no defined instance directory in /etc/conf.d/ttrssd" |
42 |
- return 1 |
43 |
- fi |
44 |
- |
45 |
- # verify log file accessibility |
46 |
- if [ ! -e "${LOGFILE}" ]; then |
47 |
- touch "${LOGFILE}" || return 1 |
48 |
- fi |
49 |
- chown "${TTRSSD_USER}":"${TTRSSD_GROUP}" "${LOGFILE}" || return 1 |
50 |
- |
51 |
- # check instances for errors |
52 |
- for instance in ${INSTANCE_DIRS}; do |
53 |
- if [ ! -f "${instance}/update_daemon2.php" ]; then |
54 |
- eerror "\"${instance}\" does not contain update_daemon2.php script." |
55 |
- eerror "Please check your installation or the INSTANCE_DIRS variable." |
56 |
- return 1 |
57 |
- fi |
58 |
- |
59 |
- # FIXME: This should be done by webapp-config during install |
60 |
- for dir in ${INSTANCE_FOLDERS}; do |
61 |
- if [ -d "${instance}/${dir}" ]; then |
62 |
- chgrp -R "${TTRSSD_GROUP}" "${instance}/${dir}" || return 1 |
63 |
- chmod -R g+w "${instance}/${dir}" || return 1 |
64 |
- fi |
65 |
- done |
66 |
- done |
67 |
-} |
68 |
- |
69 |
-start () { |
70 |
- local instance |
71 |
- |
72 |
- checkconfig || return 1 |
73 |
- |
74 |
- for instance in ${INSTANCE_DIRS}; do |
75 |
- ebegin "Starting TT-RSS update daemon in \"${instance}\"" |
76 |
- start-stop-daemon --start --user "${TTRSSD_USER}":"${TTRSSD_GROUP}" --background \ |
77 |
- --stdout "${LOGFILE}" --stderr "${LOGFILE}" \ |
78 |
- --exec /usr/bin/php -- -f "${instance}/update_daemon2.php" |
79 |
- eend $? |
80 |
- done |
81 |
-} |
82 |
- |
83 |
-stop() { |
84 |
- local instance |
85 |
- |
86 |
- for instance in ${INSTANCE_DIRS}; do |
87 |
- ebegin "Stopping TT-RSS update daemon in \"${instance}\"" |
88 |
- start-stop-daemon --stop --retry 30 \ |
89 |
- --exec /usr/bin/php -- -f "${instance}/update_daemon2.php" |
90 |
- eend $? |
91 |
- rm -f ${instance}/lock/*.lock |
92 |
- done |
93 |
-} |