VirtualBox

Changeset 69007 in vbox


Ignore:
Timestamp:
Oct 6, 2017 3:31:05 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118276
Message:

Additions: missing conflict with systemd-timesyncd.service for guest service.
bugref:3809: Linux installer maintenance

This change adds "Conflicts=systemd-timesyncd.service" to the systemd unit
file for the guest service. This prevents our time synchronisation service
and the systemd time synchronisation service from running at the same time.
See Debian bug 873263.
https://bugs.debian.org/873263
Thank you Gianfranco Costamagna <locutusofborg@…>.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd-service.sh

    r58326 r69007  
    1414#
    1515
     16# X-Conflicts-With is our own invention, which we use when converting to
     17# a systemd unit.
     18
    1619# chkconfig: 345 35 65
    1720# description: VirtualBox Additions service
     
    2326# Default-Start:  2 3 4 5
    2427# Default-Stop:   0 1 6
     28# X-Conflicts-With: systemd-timesyncd.service
    2529# Description:    VirtualBox Additions Service
    2630### END INIT INFO
  • trunk/src/VBox/Installer/linux/routines.sh

    r68319 r69007  
    123123    test -n "${unit_path}" || \
    124124        { echo "$self: systemd unit path not found" >&2 && return 1; }
     125    conflicts=`sed -n 's/# *X-Conflicts-With: *\(.*\)/\1/p' "${script}" | sed 's/\$[a-z]*//'`
    125126    description=`sed -n 's/# *Short-Description: *\(.*\)/\1/p' "${script}"`
    126127    required=`sed -n 's/# *Required-Start: *\(.*\)/\1/p' "${script}" | sed 's/\$[a-z]*//'`
     
    138139Before=${targets}shutdown.target ${before}
    139140After=${after}
    140 Conflicts=shutdown.target
     141Conflicts=shutdown.target ${conflicts}
    141142
    142143[Service]
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