* [gentoo-commits] gentoo-x86 commit in www-apps/tt-rss/files: postinstall-en-with-daemon.txt ttrssd.initd ttrssd.logrotated ttrssd.confd
@ 2011-07-17 15:09 Markos Chandras (hwoarang)
0 siblings, 0 replies; only message in thread
From: Markos Chandras (hwoarang) @ 2011-07-17 15:09 UTC (permalink / raw
To: gentoo-commits
hwoarang 11/07/17 15:09:07
Added: postinstall-en-with-daemon.txt ttrssd.initd
ttrssd.logrotated ttrssd.confd
Log:
Version bump. Introducing init script and logrotate file. Thanks to Patrick Nagel <mail@patrick-nagel.net>
(Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
Revision Changes Path
1.1 www-apps/tt-rss/files/postinstall-en-with-daemon.txt
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/files/postinstall-en-with-daemon.txt?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/files/postinstall-en-with-daemon.txt?rev=1.1&content-type=text/plain
Index: postinstall-en-with-daemon.txt
===================================================================
Please read http://tt-rss.org/redmine/wiki/tt-rss/InstallationNotes
Once you have configured TT-RSS, put the path to this instance into
the INSTANCE_DIRS variable in /etc/conf.d/ttrssd. Make sure that
the ttrssd user can access the path, and then start the update daemon
with
/etc/init.d/ttrssd start
to get your feeds updated. Add the daemon to your default runlevel,
so that it gets launched after a system restart:
rc-update add ttrssd default
1.1 www-apps/tt-rss/files/ttrssd.initd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/files/ttrssd.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/files/ttrssd.initd?rev=1.1&content-type=text/plain
Index: ttrssd.initd
===================================================================
#!/sbin/runscript
LOGFILE=/var/log/ttrssd.log
depend() {
need logger net
}
start () {
ebegin "Starting TT-RSS update daemon(s)"
[ -z "${INSTANCE_DIRS}" ] && { echo "No instance directories specified in /etc/conf.d/ttrssd."; exit 1; }
# Make sure the log file can be written to
touch ${LOGFILE} && chown ttrssd ${LOGFILE}
for INSTANCE_DIR in ${INSTANCE_DIRS}; do
[ -f "${INSTANCE_DIR}/update_daemon2.php" ] || continue
einfo " ${INSTANCE_DIR}"
# Since I have no idea how I could do this during the webapp-config installation,
# lets do it during start up...
for DIR in cache cache/htmlpurifier cache/magpie cache/simplepie lock icons; do
chgrp ttrssd "${INSTANCE_DIR}/${DIR}"
chmod g+w "${INSTANCE_DIR}/${DIR}"
done
# Finally run the PHP script
start-stop-daemon --start -u ttrssd:ttrssd -b \
-1 /var/log/ttrssd.log -2 /var/log/ttrssd.log \
-x /usr/bin/php "${INSTANCE_DIR}/update_daemon2.php"
done
eend $?
}
stop() {
ebegin "Stopping TT-RSS update daemon(s)"
for INSTANCE_DIR in ${INSTANCE_DIRS}; do
[ -f "${INSTANCE_DIR}/update_daemon2.php" ] || continue
einfo " ${INSTANCE_DIR}"
start-stop-daemon --stop -x /usr/bin/php "${INSTANCE_DIR}/update_daemon2.php"
done
eend $?
}
1.1 www-apps/tt-rss/files/ttrssd.logrotated
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/files/ttrssd.logrotated?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/files/ttrssd.logrotated?rev=1.1&content-type=text/plain
Index: ttrssd.logrotated
===================================================================
/var/log/ttrssd.log {
daily
missingok
notifempty
postrotate
/etc/init.d/ttrssd restart > /dev/null
endscript
}
1.1 www-apps/tt-rss/files/ttrssd.confd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/files/ttrssd.confd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/tt-rss/files/ttrssd.confd?rev=1.1&content-type=text/plain
Index: ttrssd.confd
===================================================================
# List paths to your TT-RSS instances to start their update daemons
# Example: INSTANCE_DIRS="/some/webhost/htdocs/tt-rss /some/otherwebhost/htdocs/newsreader"
INSTANCE_DIRS=""
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-17 15:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-17 15:09 [gentoo-commits] gentoo-x86 commit in www-apps/tt-rss/files: postinstall-en-with-daemon.txt ttrssd.initd ttrssd.logrotated ttrssd.confd Markos Chandras (hwoarang)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox