Giter Club home page Giter Club logo

mediagoblin-init-scripts's Introduction

GNU MediaGoblin init scripts

http://api.flattr.com/button/flattr-badge-large.png

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.

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

Installation

The easy way

Run:

cd <mediagoblin-git-root-here>
# 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

mediagoblin-init-scripts's People

Contributors

joar avatar rovanion avatar igi-111 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.