公平库存标准Fedora 30安装:
$ 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。但是,我不能让它在启动时启动。
当我使用通常推荐的方法时,会发生这样的情况:
$ 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 directorysystemd-sysv-install确实缺失了:
$ 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服务有着同样的戏剧性。
发布于 2019-08-08 00:51:18
回避这个问题的力量再次闪现出来!当然,手动安装chkconfig解决了我最初的问题:
$ 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。
https://unix.stackexchange.com/questions/534463
复制相似问题