文件操作 - ua-reboot-cmds.service
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/systemd/system/ua-reboot-cmds.service
编辑文件内容
# On machines that are currently attached to Ubuntu Pro services, sometimes an action # is required immediately after the next reboot. # In those situations, a marker file is created that activates this service on the next boot. # Circumstances that could cause this include: # - Upgrading from one LTS to the next LTS: to account for service availability changes between releases # - Pro FIPS images with outstanding apt hold on FIPS packages: to clear the holds [Unit] Description=Ubuntu Pro reboot cmds ConditionPathExists=|/var/lib/ubuntu-advantage/marker-reboot-cmds-required ConditionPathExists=|/var/lib/ubuntu-advantage/marker-only-series-check ConditionPathExists=/var/lib/ubuntu-advantage/private/machine-token.json After=ua-auto-attach.service [Service] Type=oneshot ExecStart=/usr/bin/python3 /usr/lib/ubuntu-advantage/reboot_cmds.py TimeoutSec=0 [Install] WantedBy=multi-user.target
修改文件时间
将文件时间修改为当前时间的前一年
删除文件