From: Brett Porter Date: Fri, 11 Jan 2013 04:33:18 +0000 (+0000) Subject: instructions for installing as a service on Linux and Mac OS X, add a brief X-Git-Tag: archiva-1.4-M4~304 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=66cc6557dcfb9739d0c4e65dd33c1b4246658857;p=archiva.git instructions for installing as a service on Linux and Mac OS X, add a brief Puppet reference at the end git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1431872 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-docs/src/site/apt/adminguide/standalone.apt b/archiva-docs/src/site/apt/adminguide/standalone.apt index 54ba8c4ab..5c516c66e 100644 --- a/archiva-docs/src/site/apt/adminguide/standalone.apt +++ b/archiva-docs/src/site/apt/adminguide/standalone.apt @@ -59,6 +59,37 @@ Installing Standalone Distribution of Apache Archiva +--- +* Installing as a Service on Linux + + On Linux, the <<>> script is suitable for linking or copying + to <<>> and running as <<>>, as long as the + <<>> environment variable is set within the script. This will + allow you to start and stop the service with: + ++----+ +$ service archiva start +$ service archiva stop ++----+ + +** Starting on boot for RedHat-based systems + + The startup script is enabled to <<>>. Run the following as + <<>>: + ++----+ +$ chkconfig --add archiva +$ chkconfig archiva on ++----+ + +** Starting on boot for Debian/Ubuntu-based systems + + Debian-based systems come with a script to create appropriate <<>> + links for a startup script: + ++----+ +$ update-rc.d archiva defaults 80 ++----+ + * Installing as a Service on Windows On Windows, to use the <<>> and <<>> commands you must first install it as a service. This is done by running: @@ -86,6 +117,66 @@ wrapper.java.command=fullpath to your java executable .\bin\archiva.bat remove ---- +* Installing as a Service on Mac OS X + + On OS X, you can use <<>> to run a service. Create the following + as root in <<>>: + ++----+ + + + + + Label + org.apache.archiva + ProgramArguments + + /Applications/Archiva/apache-archiva-${project.version}/bin/archiva + console + + Disabled + + RunAtLoad + + UserName + archiva + StandardOutPath + /Applications/Archiva/apache-archiva-${project.version}/logs/launchd.log + + EnvironmentVariables + + ARCHIVA_BASE + /Users/archiva/Library/Archiva + + + + ++----+ + + To install the service, run the following: + ++----+ +$ sudo chown root:wheel /Library/LaunchDaemons/org.apache.archiva.plist +$ sudo launchctl load -w /Library/LaunchDaemons/org.apache.archiva.plist ++----+ + + Start and stop the service with: + ++----+ +$ sudo launchctl start org.apache.archiva.plist +$ sudo launchctl stop org.apache.archiva.plist ++----+ + + To uninstall the service: + ++----+ +$ sudo launchctl unload -w /Library/LaunchDaemons/org.apache.archiva.plist ++----+ + * Separating the base from the installation The standalone installation of Archiva is capable of separating its configuration from installation @@ -192,4 +283,13 @@ wrapper.java.command=fullpath to your java executable {{{http://cwiki.apache.org/confluence/display/ARCHIVA/Archiva+User+DB+on+Derby+Network+Server} Archiva User DB on Derby Network Server}} +* Installing with Puppet + + If you use Puppet to manage your infrastructure, you can use a third-party + Puppet module to install Archiva. This will take care of adding the + required users, databases and configuration based on official release + tarballs. + + * {{{https://forge.puppetlabs.com/maestrodev/archiva} Puppet module for + Apache Archiva}}