I'm running tt-rss on an Amazon EC2 instance, on the free tier, using Amazon's Linux distribution, which as far as I can tell is some sort of stripped-down variant of RHEL. I was having trouble setting things up so that the updater would run automatically. Ideally, I'd like a relatively robust daemon, that will restart automatically, or at least make a fuss and tell me to restart it. I was trying to set up a Sys V style init.d script for update_daemon2, using a barebones template; starting the daemon worked, but stopping didn't. In earlier efforts, I tried launching screen as user 'apache', but I couldn't seem to get that to work in a script, although entering commands interactively seemed to work.
I've seen people here mention that they're using init.d scripts. Does someone have a working example they're willing to share?
In the meantime, what I've done is to add this to the system crontab:
Referring to this script:
Code: Select all
/bin/su apache -s /bin/bash -c "/usr/bin/php ./update_daemon2.php" 2>&1 >/dev/null &
It's been working okay for a few weeks, but as I said, I'd rather do something more robust.