Page 1 of 1

Systemd Service file

Posted: 31 Aug 2015, 15:15
by John.Doe
Hi all,

since debian switched to systemd with the release of jessie, you're gonna need a service file in order to start the process. I took the serivce file that is shipping with arch, maybe it helps somebody else:

Code: Select all

[Unit]
Description=Tiny Tiny RSS feeds update daemon
After=network.target mysqld.service postgresql.service

[Service]
ExecStart=/usr/bin/php /usr/share/webapps/tt-rss/update.php --daemon
User=www-data
StandardOutput=null
StandardError=syslog

[Install]
WantedBy=multi-user.target


You need to adapt the path and enable the service file before you can start it.

Re: Systemd Service file

Posted: 02 Aug 2016, 04:54
by bjorn
To run the daemon from systemd I did the following under Ubuntu 16.04

Edit: /lib/systemd/system/ttrss_backend.service

Code: Select all

[Unit]
Description=ttrss_backend
After=network.target mysql.service postgresql.service

[Service]
User=www-data
ExecStart=/var/www/tt-rss/update_daemon2.php

[Install]
WantedBy=multi-user.target


Run:
systemctl enable ttrss_backend.service
service ttrss_backend start