rockstor / rockstor-core

Linux/BTRFS based Network Attached Storage(NAS)
http://rockstor.com/docs/contribute_section.html
GNU General Public License v3.0
556 stars 137 forks source link

Make explicit to systemd our NetworkManager dependency #2685

Closed phillxnet closed 10 months ago

phillxnet commented 1 year ago

We use nmcli (Network Manager cli) and expect the associated systemd service, NetworkManager, to be enabled and running. As such, it is proposed that we explicitly 'Require' this service within our own systemd services.

Current explicit 'Require's in our systemd services

service Requires
rockstor-pre postgresql.service
rockstor rockstor-pre
rockstor-bootstrap rockstor
rockstor-hdparm systemd-udev-settle

Our installer already establishes this service, but it can only help to be explicit. This may also help with speeding up on-boarding for those doing rpm installs without first referencing our following doc entry: Install on Vanilla openSUSE/SuSE SLES: https://rockstor.com/docs/howtos/rpm_install.html And in ground-up developmental setups, or deployments experimenting with new OS bases.

N.B. the postgresql.service /usr/lib/systemd/system/postgresql.service has the following: After=network.target however on some of our current and likely future platforms this does not imply/guarantee the NetworkManager.service but could for example still be provided by the wicked.service.

phillxnet commented 10 months ago

Closing as: Fixed by #2762