博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
fedora 29 桌面版 设置 cockpit 自动开机启动
阅读量:4687 次
发布时间:2019-06-09

本文共 1358 字,大约阅读时间需要 4 分钟。

systemctl enable cockpit 时,会出现如下错误:

The unit files have no installation config (WantedBy, RequiredBy, Also, Aliassettings in the [Install] section, and DefaultInstance for template units).This means they are not meant to be enabled using systemctl.Possible reasons for having this kind of units are:1) A unit may be statically enabled by being symlinked from another unit's   .wants/ or .requires/ directory.2) A unit's purpose may be to act as a helper for some other unit which has   a requirement dependency on it.3) A unit may be started when needed via activation (socket, path, timer,   D-Bus, udev, scripted systemctl call, ...).4) In case of template units, the unit is meant to be enabled with some   instance name specified.

修改cockpit.service 文件为如下所示:

➜  ~ cat /usr/lib/systemd/system/cockpit.service [Unit]Description=Cockpit Web ServiceDocumentation=man:cockpit-ws(8)Requires=cockpit.socket[Service]ExecStartPre=/usr/sbin/remotectl certificate --ensure --user=root --group=cockpit-ws --selinux-type=etc_tExecStart=/usr/libexec/cockpit-wsPermissionsStartOnly=trueUser=cockpit-wsGroup=cockpit-ws[Install]WantedBy=multi-user.target

添加 [Install] 配置单元,即可解决问题。

参考链接:

保持更新, 转载请注明出处;

更新:2019年6月12日14:57:08

sudo systemctl enable --now cockpit.socket

参考地址:https://www.ovirt.org/download/

转载于:https://www.cnblogs.com/xuyaowen/p/cockpit-systemctl-enable.html

你可能感兴趣的文章
叙述下列术语的定义并说明它们之间的关系:卷、块、文件、记录。
查看>>
不把DB放进容器的理由
查看>>
OnePage收集
查看>>
Java parseInt()方法
查看>>
yahoo的30条优化规则
查看>>
[CCF2015.09]题解
查看>>
[NYIST15]括号匹配(二)(区间dp)
查看>>
json_value.cpp : fatal error C1083: 无法打开编译器生成的文件:No such file or directory
查看>>
洛谷 P1101 单词方阵
查看>>
Swift DispatchQueue
查看>>
C#和JAVA 访问修饰符
查看>>
集合框架
查看>>
小甲鱼OD学习第1讲
查看>>
【转】简述生成式对抗网络
查看>>
HDU-1085 Holding Bin-Laden Captive-母函数
查看>>
php提示undefined index的几种解决方法
查看>>
轻量级原生 ajax 函数,支持 get/array post/array post/json
查看>>
LRJ
查看>>
Struts2环境搭建
查看>>
SQL的bit列名转换成access是/否数据类型,True无效的问题
查看>>