systemd-sysv-installが見つからないため、Fedoraの起動時にgrafanaを有効にできません。

systemd-sysv-installが見つからないため、Fedoraの起動時にgrafanaを有効にできません。

非常に標準的なFedora 30のインストール:

$ uname -a
Linux <redacted> 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 repoを追加してから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 directory

systemd-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

これは明らかにFedoraのシンボリックリンクでなければsystemd-sysv-installなりません。chkconfigもしそうなら、基本以外のサービスに対する起動スクリプトのインストールを担当するツールを決定するのはFedora、grafana、またはsystemdの責任ですか?それでは、欠落しているリンクを提供する責任は誰にありますか?

わかりますPythonサービスも同様に劇的でしたnetwork

ベストアンサー1

質問を避けるラバードックの力が再び輝く!もちろん、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.

したがって、誰かがより良い答えをしない限り、私が考えることができる最善の答えは、systemdFedora 30のインストールが不完全であるということです。をインストールする必要がありますchkconfig

おすすめ記事