Espelho para https://github.com/piratas/mediagoblin-init-scripts

Iuri Guilherme 99f66dc3c2 Consertei restart com sleep 1 3 years ago
LICENSE 55d3ccb4e4 Merge branch 'master' of notabug.org:iuri/mediagoblin-init-scripts 3 years ago
README.rst 0f1e629595 Renamed deprecated celeryd to celery worker. 4 years ago
installer.sh 0f1e629595 Renamed deprecated celeryd to celery worker. 4 years ago
mg-celery-worker 99f66dc3c2 Consertei restart com sleep 1 3 years ago
mg-paster 99f66dc3c2 Consertei restart com sleep 1 3 years ago

README.rst

============================
GNU MediaGoblin init scripts
============================

.. image:: http://api.flattr.com/button/flattr-badge-large.png
:target: http://flattr.com/thing/695398/jwandborgmediagoblin-init-scripts-on-GitHub

Run your MediaGoblin server and task queue as services that start
automatically on reboot.

These scripts should free you of some burdens, and if you don't feel you
have any, you might not need them :)

Compatibility
-------------

These MediaGoblin init scripts are compatible with `Debian's
dependency-based boot sequence`_. They use functions sourced from
``/lib/lsb/init-functions`` and are installed with ``insserv``.

.. _`Debian's dependency-based boot sequence`: http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot

For Arch alternatives, see `MediaGoblin - ArchLinux rc.d scripts by jpope`_ and
`Mediagoblin init script on Archlinux by Chimo`_.

.. _`MediaGoblin - ArchLinux rc.d scripts by jpope`: http://whird.jpope.org/2012/04/14/mediagoblin-archlinux-rcd-scripts
.. _`Mediagoblin init script on Archlinux by Chimo`: http://chimo.chromic.org/2012/03/01/mediagoblin-init-script-on-archlinux/

Installation
------------

The easy way
~~~~~~~~~~~~

Run::

cd
# Run this command as the user you will run the services as.
curl http://wandborg.se/mediagoblin-init-scripts/installer.sh | sh

.. warning::

For this one you must trust the connection between the wandborg.se server
and you, and whoever has access to that machine (me) enough to compromise
your entire machine and connected devices.

The script will by design ask for your ``sudo`` password to install
the services.

Think this trust-dependency can be avoided? Feel free to ping me anywhere
and/or submit a pull request.

The hard but safe way
~~~~~~~~~~~~~~~~~~~~~

1. Download the ``mediagoblin-paster.sh`` script.
2. Open the ``mediagoblin-paster.sh`` script in your favourite text editor.
3. Replace ``MG_ROOT=...`` and ``MG_USER=...`` with values that fit your
environment.
4. Save the script to ``/etc/init.d/mediagoblin-paster`` (without the ``.sh``
file extension)
5. Run ``sudo insserv mediagoblin-paster``.
6. *Repeat all steps again, but with mediagoblin-celery-worker.*

Now, to start the services, simply run
``sudo service mediagoblin-paster start`` and
``sudo service mediagoblin-celery-worker start``.

License
-------
See LICENSE