ttrss single process daemon
This commit is contained in:
parent
a53f2a4e13
commit
46b2626ae5
|
@ -8368,14 +8368,16 @@ function install_rss_reader {
|
||||||
echo '[Unit]' > /etc/systemd/system/ttrss.service
|
echo '[Unit]' > /etc/systemd/system/ttrss.service
|
||||||
echo 'Description=ttrss_backend' >> /etc/systemd/system/ttrss.service
|
echo 'Description=ttrss_backend' >> /etc/systemd/system/ttrss.service
|
||||||
echo 'After=network.target mysql.service' >> /etc/systemd/system/ttrss.service
|
echo 'After=network.target mysql.service' >> /etc/systemd/system/ttrss.service
|
||||||
|
echo 'After=tor.service' >> /etc/systemd/system/ttrss.service
|
||||||
echo '' >> /etc/systemd/system/ttrss.service
|
echo '' >> /etc/systemd/system/ttrss.service
|
||||||
echo '[Service]' >> /etc/systemd/system/ttrss.service
|
echo '[Service]' >> /etc/systemd/system/ttrss.service
|
||||||
echo 'User=www-data' >> /etc/systemd/system/ttrss.service
|
echo 'User=www-data' >> /etc/systemd/system/ttrss.service
|
||||||
echo "ExecStart=$RSS_READER_PATH/update_daemon2.php" >> /etc/systemd/system/ttrss.service
|
echo "ExecStart=/usr/bin/php $RSS_READER_PATH/update.php --daemon" >> /etc/systemd/system/ttrss.service
|
||||||
echo '' >> /etc/systemd/system/ttrss.service
|
echo '' >> /etc/systemd/system/ttrss.service
|
||||||
echo '[Install]' >> /etc/systemd/system/ttrss.service
|
echo '[Install]' >> /etc/systemd/system/ttrss.service
|
||||||
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/ttrss.service
|
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/ttrss.service
|
||||||
systemctl enable ttrss
|
systemctl enable ttrss
|
||||||
|
systemctl daemon-reload
|
||||||
systemctl start ttrss
|
systemctl start ttrss
|
||||||
|
|
||||||
# some post-install instructions for the user
|
# some post-install instructions for the user
|
||||||
|
|
Loading…
Reference in New Issue