diff --git a/README.rst b/README.rst index 6378ca6..758e9ec 100644 --- a/README.rst +++ b/README.rst @@ -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 ~~~~~~ diff --git a/openrc-service b/openrc-service new file mode 100755 index 0000000..7528d3e --- /dev/null +++ b/openrc-service @@ -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 +}