首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Fedora启动时启用grafana,因为systemd-sysv-install丢失。

无法在Fedora启动时启用grafana,因为systemd-sysv-install丢失。
EN

Unix & Linux用户
提问于 2019-08-08 00:48:28
回答 1查看 5.3K关注 0票数 5

公平库存标准Fedora 30安装:

代码语言:javascript
复制
$ uname -a
Linux  5.1.16-300.fc30.x86_64 #1 SMP Wed Jul 3 15:06:51 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/fedora-release 
Fedora release 30 (Thirty)

我使用标准指令安装了grafana。添加grafana rpm回购,然后sudo dnf install grafana

我可以手动启动和使用grafana没有问题使用sudo systemctl start grafana-server。但是,我不能让它在启动时启动。

当我使用通常推荐的方法时,会发生这样的情况:

代码语言:javascript
复制
$ sudo systemctl enable grafana-server
Synchronizing state of grafana-server.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable grafana-server
Failed to execute /usr/lib/systemd/systemd-sysv-install: No such file or directory

systemd-sysv-install确实缺失了:

代码语言:javascript
复制
$ ls /usr/lib/systemd/
boot                      systemd-bless-boot              systemd-journald              systemd-rfkill            systemd-user-sessions
catalog                   systemd-bootchart               systemd-localed               systemd-shutdown          systemd-vconsole-setup
libsystemd-shared-241.so  systemd-boot-check-no-failures  systemd-logind                systemd-sleep             systemd-veritysetup
network                   systemd-cgroups-agent           systemd-makefs                systemd-socket-proxyd     systemd-volatile-root
ntp-units.d               systemd-coredump                systemd-modules-load          systemd-sulogin-shell     system-generators
portable                  systemd-cryptsetup              systemd-networkd              systemd-sysctl            system-preset
purge-nobody-user         systemd-dissect                 systemd-networkd-wait-online  systemd-timedated         system-shutdown
resolv.conf               systemd-export                  systemd-portabled             systemd-timesyncd         system-sleep
system                    systemd-fsck                    systemd-quotacheck            systemd-time-wait-sync    user
systemd                   systemd-growfs                  systemd-random-seed           systemd-udevd             user-environment-generators
systemd-ac-power          systemd-hibernate-resume        systemd-remount-fs            systemd-update-done       user-generators
systemd-backlight         systemd-hostnamed               systemd-reply-password        systemd-update-utmp       user-preset
systemd-binfmt            systemd-initctl                 systemd-resolved              systemd-user-runtime-dir

显然,systemd-sysv-install应该是Fedora上chkconfig的一个符号链接。那么,决定哪个工具负责为非本地服务安装引导脚本是Fedora、grafana还是systemd的责任吗?因此,谁负责提供缺失的链接?

我看到蟒蛇network服务有着同样的戏剧性。

EN

回答 1

Unix & Linux用户

发布于 2019-08-08 00:51:18

回避这个问题的力量再次闪现出来!当然,手动安装chkconfig解决了我最初的问题:

代码语言:javascript
复制
$ sudo dnf install chkconfig -y
$ sudo systemctl enable grafana-server
Synchronizing state of grafana-server.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable grafana-server
Created symlink /etc/systemd/system/multi-user.target.wants/grafana-server.service → /usr/lib/systemd/system/grafana-server.service.

所以,除非有人有更好的答案,否则我能想到的最好的办法就是Fedora 30上的systemd安装是不完整的。您还必须安装chkconfig

票数 8
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/534463

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档