文件操作 - rhel-autorelabel.service
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/systemd/system/rhel-autorelabel.service
编辑文件内容
[Unit] Description=Relabel all filesystems, if necessary DefaultDependencies=no Requires=local-fs.target Conflicts=shutdown.target After=local-fs.target Before=sysinit.target shutdown.target ConditionSecurity=selinux ConditionKernelCommandLine=|autorelabel ConditionPathExists=|/.autorelabel [Service] ExecStart=/usr/lib/systemd/rhel-autorelabel Type=oneshot TimeoutSec=0 RemainAfterExit=yes StandardOutput=journal+console [Install] WantedBy=sysinit.target
修改文件时间
将文件时间修改为当前时间的前一年
删除文件