main
ROOT /
pages /
run-as-system-service.md
23 lines | ISO-8859-1 | 1 KB

This document explains how to configure OneDev to run as system service so that it runs in the backend and can start automatically when system starts

On Windows Platform

  1. Edit file <OneDev dir>\conf\wraper.conf to set value of property wrapper.java.command as path to java command if it does not exist in system path

  2. Open a command prompt with administrator privilege and switch to folder <OneDev dir>\bin

  3. Run command server.bat install. A Windows service with name OneDev will be installed

  4. To uninstall the service, run command server.bat remove from the same folder with administrator privilege

On Linux and Mac OS X

  1. Edit file <OneDev dir>/conf/wraper.conf to set value of property wrapper.java.command as path to java command if it does not exist in system path

  2. By default, the service will run under root user. To run as another user, edit file <OneDev dir>/bin/server.sh and uncomment below line to specify the user. Make sure specified user has full permissions to OneDev directory and all its sub directories:

#RUN_AS_USER=
  1. Run command sudo <OneDev dir>/bin/server.sh install to install the service

  2. To uninstall the service, run command sudo <OneDev dir>/bin/server.sh remove

Please wait...
Page is in error, reload to recover