浏览代码

ttrss single process daemon

Bob Mottram 9 年前
父节点
当前提交
46b2626ae5
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      src/freedombone

+ 3
- 1
src/freedombone 查看文件

8368
     echo '[Unit]' > /etc/systemd/system/ttrss.service
8368
     echo '[Unit]' > /etc/systemd/system/ttrss.service
8369
     echo 'Description=ttrss_backend' >> /etc/systemd/system/ttrss.service
8369
     echo 'Description=ttrss_backend' >> /etc/systemd/system/ttrss.service
8370
     echo 'After=network.target mysql.service' >> /etc/systemd/system/ttrss.service
8370
     echo 'After=network.target mysql.service' >> /etc/systemd/system/ttrss.service
8371
+    echo 'After=tor.service' >> /etc/systemd/system/ttrss.service
8371
     echo '' >> /etc/systemd/system/ttrss.service
8372
     echo '' >> /etc/systemd/system/ttrss.service
8372
     echo '[Service]' >> /etc/systemd/system/ttrss.service
8373
     echo '[Service]' >> /etc/systemd/system/ttrss.service
8373
     echo 'User=www-data' >> /etc/systemd/system/ttrss.service
8374
     echo 'User=www-data' >> /etc/systemd/system/ttrss.service
8374
-    echo "ExecStart=$RSS_READER_PATH/update_daemon2.php" >> /etc/systemd/system/ttrss.service
8375
+    echo "ExecStart=/usr/bin/php $RSS_READER_PATH/update.php --daemon" >> /etc/systemd/system/ttrss.service
8375
     echo '' >> /etc/systemd/system/ttrss.service
8376
     echo '' >> /etc/systemd/system/ttrss.service
8376
     echo '[Install]' >> /etc/systemd/system/ttrss.service
8377
     echo '[Install]' >> /etc/systemd/system/ttrss.service
8377
     echo 'WantedBy=multi-user.target' >> /etc/systemd/system/ttrss.service
8378
     echo 'WantedBy=multi-user.target' >> /etc/systemd/system/ttrss.service
8378
     systemctl enable ttrss
8379
     systemctl enable ttrss
8380
+    systemctl daemon-reload
8379
     systemctl start ttrss
8381
     systemctl start ttrss
8380
 
8382
 
8381
     # some post-install instructions for the user
8383
     # some post-install instructions for the user