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 :)
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.
- Download the
mediagoblin-paster.sh
script. - Open the
mediagoblin-paster.sh
script in your favourite text editor. - Replace
MG_ROOT=...
andMG_USER=...
with values that fit your environment. - Save the script to
/etc/init.d/mediagoblin-paster
(without the.sh
file extension) - Run
sudo insserv mediagoblin-paster
. - Repeat all steps again, but with mediagoblin-celeryd.
Now, to start the services, simply run
sudo service mediagoblin-paster start
and
sudo service mediagoblin-celeryd start
.
See LICENSE