文件操作 - snapd.system-shutdown.service
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/systemd/system/snapd.system-shutdown.service
编辑文件内容
[Unit] Description=Ubuntu core (all-snaps) system shutdown helper setup service Before=umount.target DefaultDependencies=false # don't run on classic ConditionKernelCommandLine=|snap_core ConditionKernelCommandLine=|snapd_recovery_mode ConditionPathExists=!/usr/bin/finalrd # don't run if system-shutdown isn't there ConditionPathExists=/usr/lib/snapd/system-shutdown # X-Snapd-Snap: do-not-start [Service] Type=oneshot ExecStart=/bin/mount /run -o remount,exec ExecStart=/bin/mkdir -p /run/initramfs ExecStart=/bin/cp /usr/lib/snapd/system-shutdown /run/initramfs/shutdown [Install] WantedBy=final.target
修改文件时间
将文件时间修改为当前时间的前一年
删除文件