Init Script - 2langnic/GlobaLeaks GitHub Wiki
==== Install Debian/Ubuntu init.d script ====
To run GlobaLeaks software automagically the following script can be used:
https://raw.github.com/globaleaks/GlobaLeaks/master/contrib/debian/globaleaks.init
To setup it and start GlobaLeaks with default argument follow these guidelines:
wget "https://raw.github.com/globaleaks/GlobaLeaks/master/contrib/debian/globaleaks.init"
mv globaleaks.init /etc/init.d/globaleaks
Some parametes of Globaleaks can be configured inside of the init script, for example:
# USER = [user_name]
# permits to configure the USER privileges of the globaleaks process
USER=www-data
# GROUP = [group_name]
# permits to configure the GROUP privileges of the globaleaks process
GROUP=www-data
# HOST = [ip_address, hostname, other_hostname]
# permits to configure a list of hosts at which globaleaks will be reachable
HOSTSLIST=127.0.0.1,localhost,dev.globaleaks.org
# LISTENINGPORT = [port_number]
# permits to configure a port at which globaleaks process will bind to
LISTENINGPORT=8082
# GLDIR = [directory_path]
# must be configured with the path at which globaleaks install resides
GLDIR=/data/globaleaks/dev
# WORKING_DIR
# must be configured with the daemon working directory
WORKING_DIR=${GLDIR}/working_dir
GlobaLeaks can be automatically started at boot time by executing:
update-rc.d globaleaks defaults