VirtualBox

Changeset 42119 in vbox for trunk/src


Ignore:
Timestamp:
Jul 11, 2012 7:45:32 PM (13 years ago)
Author:
vboxsync
Message:

Installer/linux: autostart service integration

Location:
trunk/src/VBox/Installer/linux
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/Makefile.kmk

    r41477 r42119  
    5353                deffiles \
    5454                routines.sh \
     55                vboxautostart-service.sh \
    5556                vboxballoonctrl-service.sh \
    5657                vboxdrv.sh \
     
    323324                $(VBOX_PATH_LNX_INST_SRC)/deffiles \
    324325                $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
     326                $(VBOX_LNX_INST_OUT_DIR)/vboxautostart-service.sh \
    325327                $(VBOX_LNX_INST_OUT_DIR)/vboxballoonctrl-service.sh \
    326328                $(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh \
     
    335337        $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LNX_INST_SRC)/deffiles             $(VBOX_LNX_INST_STAGE_DIR)/
    336338        $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(VBOX_BRAND_LICENSE_TXT)    $(VBOX_LNX_INST_STAGE_DIR)/LICENSE)
     339        $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/vboxautostart-service.sh $(VBOX_LNX_INST_STAGE_DIR)/
    337340        $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/vboxballoonctrl-service.sh $(VBOX_LNX_INST_STAGE_DIR)/
    338341        $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh            $(VBOX_LNX_INST_STAGE_DIR)/
     
    346349
    347350# files that needs editing before they can be included in the generic installer.
     351$(VBOX_LNX_INST_OUT_DIR)/vboxautostart-service.sh: $(VBOX_PATH_LNX_INST_SRC)/vboxautostart-service.sh.in | $$(dir $$@)
     352        $(QUIET)$(SED_EXT) \
     353                -e "s|%NOLSB%|yes|g" \
     354                -e "s|%DEBIAN%||g" \
     355                -e "s|%PACKAGE%|virtualbox|g" \
     356                -e "s|%VERSION%|$(VBOX_VERSION_STRING)|g" \
     357                --output $@ \
     358                $<
     359
    348360$(VBOX_LNX_INST_OUT_DIR)/vboxballoonctrl-service.sh: $(VBOX_PATH_LNX_INST_SRC)/vboxballoonctrl-service.sh.in | $$(dir $$@)
    349361        $(QUIET)$(SED_EXT) \
  • trunk/src/VBox/Installer/linux/VBox.sh

    r38093 r42119  
    9292        exec "$INSTALL_DIR/VBoxHeadless" "$@"
    9393        ;;
     94    VBoxAutostart|vboxautostart)
     95        exec "$INSTALL_DIR/VBoxAutostart" "$@"
     96        ;;
    9497    VBoxBalloonCtrl|vboxballoonctrl)
    9598        exec "$INSTALL_DIR/VBoxBalloonCtrl" "$@"
  • trunk/src/VBox/Installer/linux/install.sh

    r39334 r42119  
    110110    check_binary "/usr/bin/VBoxHeadless" "$install_dir" &&
    111111    check_binary "/usr/bin/VBoxBalloonCtrl" "$install_dir" &&
     112    check_binary "/usr/bin/VBoxAutostart" "$install_dir" &&
    112113    check_binary "/usr/bin/vboxwebsrv" "$install_dir"
    113114}
     
    125126# Set up logging before anything else
    126127create_log $LOG
     128
     129# Now stop the autostart service otherwise it will keep VBoxSVC running
     130stop_init_script vboxautostart-service
    127131
    128132# Now stop the ballon control service otherwise it will keep VBoxSVC running
     
    373377    install_init_script vboxdrv.sh vboxdrv
    374378    install_init_script vboxballoonctrl-service.sh vboxballoonctrl-service
     379    install_init_script vboxautostart-service.sh vboxautostart-service
    375380    install_init_script vboxweb-service.sh vboxweb-service
    376381    delrunlevel vboxdrv > /dev/null 2>&1
     
    378383    delrunlevel vboxballoonctrl-service > /dev/null 2>&1
    379384    addrunlevel vboxballoonctrl-service 25 75 # This may produce useful output
     385    delrunlevel vboxautostart-service > /dev/null 2>&1
     386    addrunlevel vboxautostart-service 25 75 # This may produce useful output
    380387    delrunlevel vboxweb-service > /dev/null 2>&1
    381388    addrunlevel vboxweb-service 25 75 # This may produce useful output
     
    391398    ln -sf $INSTALLATION_DIR/VBox.sh /usr/bin/VBoxHeadless
    392399    ln -sf $INSTALLATION_DIR/VBox.sh /usr/bin/VBoxBalloonCtrl
     400    ln -sf $INSTALLATION_DIR/VBox.sh /usr/bin/VBoxAutostart
    393401    ln -sf $INSTALLATION_DIR/VBox.sh /usr/bin/vboxwebsrv
    394402    ln -sf $INSTALLATION_DIR/VBox.png /usr/share/pixmaps/VBox.png
     
    467475        fi
    468476        start_init_script vboxballoonctrl-service
     477        start_init_script vboxautostart-service
    469478        start_init_script vboxweb-service
    470479        log ""
  • trunk/src/VBox/Installer/linux/uninstall.sh

    r38340 r42119  
    5050# Stop the ballon control service
    5151stop_init_script vboxballoonctrl-service
     52# Stop the autostart service
     53stop_init_script vboxautostart-service
    5254# Stop the web service
    5355stop_init_script vboxweb-service
     
    5860delrunlevel vboxballoonctrl-service > /dev/null 2>&1
    5961remove_init_script vboxballoonctrl-service
     62delrunlevel vboxautostart-service > /dev/null 2>&1
     63remove_init_script vboxautostart-service
    6064delrunlevel vboxweb-service > /dev/null 2>&1
    6165remove_init_script vboxweb-service
     
    9397  /usr/bin/VBoxHeadless \
    9498  /usr/bin/VBoxBalloonCtrl \
     99  /usr/bin/VBoxAutostart \
    95100  /usr/bin/VBoxNetDHCP \
    96101  /usr/bin/vboxwebsrv \
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