Shamelessly taken from
http://tt-rss.org/forum/viewtopic.php?f=16&t=1135&start=15#p14282
I've finally switched to an upstart script for booting tt-rss with some minor modifications to create a lock folder before starting the service.
description "TT-RSS Feed Updater"
author "The Epyon Avenger <epyon_avenger on TT-RSS forums>"
start on started mysql
stop on stopping mysql
respawn
pre-start script
if [ ! -d "/var/lock/tt-rss/" ]; then
# be sure there is a /var/lock/tt-rss, even with tmpfs
mkdir --mode 750 --parents /var/lock/tt-rss/
chown www-data:www-data /var/lock/tt-rss/
fi
end script
setuid www-data
setgid www-data
chdir /opt/tt-rss
exec php ./update_daemon2.php
http://tt-rss.org/forum/viewtopic.php?f=16&t=1135&start=15#p14282
I've finally switched to an upstart script for booting tt-rss with some minor modifications to create a lock folder before starting the service.
description "TT-RSS Feed Updater"
author "The Epyon Avenger <epyon_avenger on TT-RSS forums>"
start on started mysql
stop on stopping mysql
respawn
pre-start script
if [ ! -d "/var/lock/tt-rss/" ]; then
# be sure there is a /var/lock/tt-rss, even with tmpfs
mkdir --mode 750 --parents /var/lock/tt-rss/
chown www-data:www-data /var/lock/tt-rss/
fi
end script
setuid www-data
setgid www-data
chdir /opt/tt-rss
exec php ./update_daemon2.php
No comments:
Post a Comment