Systemd Service file

Howtos, instructions and links to related software. Do not ask questions here.
John.Doe
Bear Rating Trainee
Bear Rating Trainee
Posts: 3
Joined: 26 Jun 2010, 08:20

Systemd Service file

Postby John.Doe » 31 Aug 2015, 15:15

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.

bjorn
Bear Rating Trainee
Bear Rating Trainee
Posts: 4
Joined: 15 Jun 2016, 06:36

Re: Systemd Service file

Postby bjorn » 02 Aug 2016, 04:54

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


Return to “Knowledge Base”

Who is online

Users browsing this forum: No registered users and 1 guest