文件操作 - snapd.service
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/systemd/system/snapd.service
编辑文件内容
[Unit] Description=Snap Daemon After=snapd.socket After=time-set.target After=snapd.mounts.target Wants=time-set.target Wants=snapd.mounts.target Requires=snapd.socket OnFailure=snapd.failure.service # This is handled by snapd # X-Snapd-Snap: do-not-start [Service] # Disabled because it breaks lxd # (https://bugs.launchpad.net/snapd/+bug/1709536) #Nice=-5 OOMScoreAdjust=-900 ExecStart=/usr/lib/snapd/snapd EnvironmentFile=-/etc/environment EnvironmentFile=-/var/lib/snapd/environment/snapd.conf Restart=always # with systemd v254+, skip going through failed state during restart RestartMode=direct WatchdogSec=5m Type=notify NotifyAccess=all SuccessExitStatus=42 RestartPreventExitStatus=42 KillMode=process KeyringMode=shared [Install] WantedBy=multi-user.target
修改文件时间
将文件时间修改为当前时间的前一年
删除文件