Skip to content

Instantly share code, notes, and snippets.

@seraphyn
Created September 17, 2015 12:31
Show Gist options
  • Save seraphyn/c7bb8c88a164bf1210fa to your computer and use it in GitHub Desktop.
Save seraphyn/c7bb8c88a164bf1210fa to your computer and use it in GitHub Desktop.
Start TinyTinyRSS update Service with systemd instead using cron.
# This file is part of my tinytinyRSSinstallation
# It is used by systemd under Debian Jessie
# WorkingDirectory=/var/www/html/ttrss must be YOUR Installationpath without
# ending slash /
#
# vim /lib/systemd/system/ttrss-update.service
# systemctl enable ttrss-update.service
# systemctl --system daemon-reload
# systemctl start ttrss-update.service
# systemctl status ttrss-update.service
[Unit]
Description=Tiny Tiny RSS update daemon
After=network.target mysqld.service
Requires=network.target remote-fs.target nss-lookup.target mysql.service
[Service]
User=www-data
Group=www-data
WorkingDirectory=/var/www/html/ttrss
Type=simple
StandardOutput=null
StandardError=syslog
ExecStart=/usr/bin/php ./update_daemon2.php
PrivateTmp=true
InaccessibleDirectories=/home /root /boot /opt /mnt /media
ReadOnlyDirectories=/etc /usr
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment