Ubuntu中的什么服务click-system-hooks.service


8

为了加快系统速度,我安装了Ubuntu 16.10,分析了系统,检查了哪些服务变慢,并断开了连接apt-daily.service,自动检查我不需要的新更新。

请说明负责该click-system-hooks.service的服务以及是否可以将其停用。

$ systemd-analyze blame
26.630s apt-daily.service
17.067s click-system-hooks.service

对不起,我的英语不好,我来自乌克兰,正在俄语论坛上浏览,找不到您所使用内容的答案- click-system-hooks.service可以禁用它。

Answers:


5

我也想知道我的Ubuntu安装上可能是什么,所以我看了一下服务文件/lib/systemd/system/click-system-hooks.service

[Unit]
Description=Run Click system-level hooks
Documentation=man:click(1)

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/click hook run-system
Restart=no

[Install]
WantedBy=multi-user.target

因此,它负责调用/usr/bin/click hook run-system。根据其手册页,单击是

Ubuntu Touch的软件包管理工具

和参数hook run-system均值

Run all system-level hooks for all installed Click packages. This is useful when starting up from images with preinstalled packages which may not have had their system-level hooks run properly when building the image.

最后,如果您不运行Ubuntu Touch,则可以通过禁用该服务,sudo systemctl disable click-system-hooks.service或者从系统中完全删除click。

对于我来说,我怀疑它是随包附带的,unity8-desktop-session它间接取决于click,因此必须安装。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.