Changeset 58585 in vbox for trunk/src/VBox/Installer/linux/scripts/VBoxHeadlessXOrg.sh
- Timestamp:
- Nov 5, 2015 3:39:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/scripts/VBoxHeadlessXOrg.sh
r56299 r58585 81 81 file. The default location is: 82 82 "${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.87 83 88 84 --help|--usage Print this text. … … 274 270 275 271 # Parse our arguments. 276 do_install=""277 272 while [ "$#" -gt 0 ]; do 278 273 case $1 in … … 291 286 exit 0 292 287 ;; 293 --install)294 do_install="install"295 ;;296 --uninstall)297 do_install="uninstall"298 ;;299 288 *) 300 289 banner … … 306 295 307 296 [ -r "${CONFIGURATION_FILE}" ] && . "${CONFIGURATION_FILE}" 308 309 if [ -n "${do_install}" ]; then310 SCRIPT_FOLDER=$(cd "${SCRIPT_FOLDER}" && pwd)"/"311 CONFIGURATION_FILE_ESCAPED=$(echo "${CONFIGURATION_FILE}" | sed 's/\([ \%]\)/\\\1/g')312 if [ "x${do_install}" = "xinstall" ]; then313 ${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 else315 ${SCRIPT_FOLDER}install_service --remove -- --service-name "${SERVICE_NAME}"316 fi317 exit 0318 fi319 297 320 298 # Change to the root directory so we don't hold any other open.
Note:
See TracChangeset
for help on using the changeset viewer.