mirror of
https://github.com/tanrax/RSSingle.git
synced 2025-03-03 03:35:46 +01:00
[init](codebase): Initial commit
Total rewrite of singlerss, better and better than before! Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
This commit is contained in:
5
res/cron/crontab
Normal file
5
res/cron/crontab
Normal file
@ -0,0 +1,5 @@
|
||||
# For stdout to file
|
||||
0 * * * * cd /opt/rss && . ./.env && /opt/rss/singlerss.py > /var/www/html/feeds.xml
|
||||
|
||||
# For file direct.
|
||||
0 * * * * cd /opt/rss && . ./.env && /opt/rss/singlerss.py
|
26
res/systemd/rss.service
Normal file
26
res/systemd/rss.service
Normal file
@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=Generate combined RSS feed.
|
||||
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# Make sure to set user and group
|
||||
# to your setup.
|
||||
User=nginx
|
||||
Group=nobody
|
||||
|
||||
# Make sure to customise these to your
|
||||
# system!
|
||||
WorkingDirectory=/var/www/html/feed.xml
|
||||
# And this.
|
||||
EnvironmentFile=/opt/singlerss/.env
|
||||
# And this.
|
||||
ExecStart=/opt/rss/singlerss.py
|
||||
|
||||
# These don't work on older systemd versions.
|
||||
# In that case, you should configure singlerss
|
||||
# to output to file, as documented in the README,
|
||||
# and comment these directives out.
|
||||
StandardInput=null
|
||||
StandardError=journal
|
||||
StandardOutput=file:$SINGLERSS_FEED_OUT_PATH
|
8
res/systemd/rss.timer
Normal file
8
res/systemd/rss.timer
Normal file
@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Hourly refresh of singlerss
|
||||
|
||||
[Timer]
|
||||
OnCalendar=hourly
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Reference in New Issue
Block a user