LoginSignup
0
0

More than 5 years have passed since last update.

Tiny Tiny RSSのフィード取得をcronで定期実行する

Posted at

基本的な部分なのですが、日本語のソースがパッと出てこなかったのでメモしておきます。

参考

ほぼここに書いてあることそのままです。
UpdatingFeeds - Tiny Tiny RSS

実行環境

  • CentOS 7.6
  • Tiny Tiny RSS v19.2

方法

1. cronの確認

$ systemctl status crond
● crond.service - Command Scheduler
   Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-04-12 20:33:26 JST; 12s ago
 Main PID: 26685 (crond)
   CGroup: /system.slice/crond.service
           └─26685 /usr/sbin/crond -n

→エラーならインストールyum -y install cron

2. tt-rssのインストール場所を確認しておく

私の場合はnginxなので/usr/share/nginx/tt-rssとなります。
tt-rssのインストールディレクトリ内にある、Update.phpを実行することでフィードを更新できます。

3. cronの編集

rootで作業します

su -

cronの編集

crontab -e

以下のコードを追記します(30分ごと更新の場合)

*/30 * * * * /usr/bin/php /usr/share/nginx/tt-rss/update.php --feeds --quiet

4. 更新

最後にcronを更新して完了です。

$ systemctl restart crond
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0