diff options
Diffstat (limited to 'roles/ttrss/templates/etc/systemd/system/ttrss.service.j2')
-rw-r--r-- | roles/ttrss/templates/etc/systemd/system/ttrss.service.j2 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/ttrss/templates/etc/systemd/system/ttrss.service.j2 b/roles/ttrss/templates/etc/systemd/system/ttrss.service.j2 new file mode 100644 index 0000000..53fef07 --- /dev/null +++ b/roles/ttrss/templates/etc/systemd/system/ttrss.service.j2 @@ -0,0 +1,18 @@ +[Unit] +Description=Tiny Tiny RSS background feed updates +Wants=gssproxy.service +After=network-online.target nss-lookup.target gssproxy.service +StartLimitIntervalSec=200 +StartLimitBurst=5 + +[Service] +Type=simple +User=apache +Group=apache +Environment=GSS_USE_PROXY=yes +ExecStart=php {{ ttrss_home }}/update_daemon2.php +Restart=on-failure +RestartSec=30 + +[Install] +WantedBy=multi-user.target |