VirtualBox

Ignore:
Timestamp:
Nov 5, 2015 3:39:41 PM (9 years ago)
Author:
vboxsync
Message:

Installers/linux (host): remove the creative and over-engineered init script handling from VBoxHeadlessXorg.sh. If anyone wishes to use it in future they will have to write their own service handling, which they would probably have had to anyway, given that the old one did not support systemd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/scripts/VBoxHeadlessXOrg.sh

    r56299 r58585  
    8181                         file.  The default location is:
    8282                           "${CONFIGURATION_FILE}"
    83 
    84   --install              Install the service to run at system start-up.
    85 
    86   --uninstall            Revert the installation done by the "--install" option.
    8783
    8884  --help|--usage         Print this text.
     
    274270
    275271# Parse our arguments.
    276 do_install=""
    277272while [ "$#" -gt 0 ]; do
    278273  case $1 in
     
    291286      exit 0
    292287      ;;
    293     --install)
    294       do_install="install"
    295       ;;
    296     --uninstall)
    297       do_install="uninstall"
    298       ;;
    299288    *)
    300289      banner
     
    306295
    307296[ -r "${CONFIGURATION_FILE}" ] && . "${CONFIGURATION_FILE}"
    308 
    309 if [ -n "${do_install}" ]; then
    310   SCRIPT_FOLDER=$(cd "${SCRIPT_FOLDER}" && pwd)"/"
    311   CONFIGURATION_FILE_ESCAPED=$(echo "${CONFIGURATION_FILE}" | sed 's/\([ \%]\)/\\\1/g')
    312   if [ "x${do_install}" = "xinstall" ]; then
    313     ${SCRIPT_FOLDER}install_service --enable -- --command "${SCRIPT_FOLDER}"$(basename "${SCRIPT_NAME}") --arguments "--conf-file ${CONFIGURATION_FILE_ESCAPED}" --service-name "${SERVICE_NAME}" --description "${SERVICE_DESCRIPTION}"
    314   else
    315     ${SCRIPT_FOLDER}install_service --remove -- --service-name "${SERVICE_NAME}"
    316   fi
    317   exit 0
    318 fi
    319297
    320298# Change to the root directory so we don't hold any other open.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette