VirtualBox

Ignore:
Timestamp:
Jan 29, 2013 7:33:05 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83421
Message:

Installer/linux: add support for stop and status commands to the service file generator and simplify the code.

File:
1 edited

Legend:

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

    r44112 r44437  
    297297  CONFIGURATION_FILE_ESCAPED=$(echo "${CONFIGURATION_FILE}" | sed 's/\([ \%]\)/\\\1/g')
    298298  if [ "x${do_install}" = "xinstall" ]; then
    299     ${SCRIPT_FOLDER}install_service --command "${SCRIPT_FOLDER}"$(basename "${SCRIPT_NAME}") --arguments "--conf-file ${CONFIGURATION_FILE_ESCAPED}" --service-name "${SERVICE_NAME}" --description "${SERVICE_DESCRIPTION}" --enable
     299    ${SCRIPT_FOLDER}install_service --enable -- --command "${SCRIPT_FOLDER}"$(basename "${SCRIPT_NAME}") --arguments "--conf-file ${CONFIGURATION_FILE_ESCAPED}" --service-name "${SERVICE_NAME}" --description "${SERVICE_DESCRIPTION}"
    300300  else
    301     ${SCRIPT_FOLDER}install_service --service-name "${SERVICE_NAME}" --remove
     301    ${SCRIPT_FOLDER}install_service --remove -- --service-name "${SERVICE_NAME}"
    302302  fi
    303303  exit 0
Note: See TracChangeset for help on using the changeset viewer.

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