Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openrc #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@ You should see some JSONFeed output (since we are requesting from the `/json` en
}
]
}
Openrc
~~~~~~
follow the setup until run locallly::

$ cp openrc-service /etc/init.d/feedmixer

edit the service file and change the working dirsctory and user


Deploy
~~~~~~
Expand Down
12 changes: 12 additions & 0 deletions openrc-service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/sbin/openrc-run
description="A self-hosted API to fetch and mix entries from Atom and RSS feeds (returns Atom, RSS, or JSON)"
cd /var/www/feedmixer
pidfile="/run/${RC_SVCNAME}.pid"
command='pipenv'
command_args='run gunicorn feedmixer_wsgi'
command_user=feedmixer
command_background=true

depend() {
use net
}