...
I installed mongodb-org-3.2.12-1.suse12.x86_64 on SLES12 SP2, but it will not start. # systemctl start mongod Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory.
vbaarda commented on Tue, 16 May 2017 19:57:56 +0000: @Brian Please note – it works on SLES12 SP1. It does not work on SLES12 SP2, which is almost brand new. brian.samek commented on Tue, 16 May 2017 19:56:48 +0000: systemd has compatibility with init scripts. After the install, it should call /usr/lib/systemd/system-generators/systemd-sysv-generator, which will create the service file from the init script. I suspect that on older versions of systemd, this does not happen automatically. systemctl daemon-reload should call the sysv-generator script. I am going to close this ticket as works as designed, since this appears to work on newer versions of systemd. vbaarda commented on Tue, 16 May 2017 19:47:16 +0000: @brian I was laid off, so I no longer have access to that machine. Perhaps Mark Agarunov could answer your question. brian.samek commented on Tue, 16 May 2017 19:32:22 +0000: vbaarda - Could you run systemctl daemon-reload and see if you are able to systemctl start mongod after this? mark.agarunov commented on Fri, 17 Mar 2017 21:14:07 +0000: Hello vbaarda, Thank you for the report. I am able to reproduce the behavior you've described and we are investigating further. I've set the fixVersion to "Needs Triage" for this issue to be scheduled against our currently planned work. Updates will be posted on this ticket as they happen. Thanks, Mark vbaarda commented on Fri, 17 Mar 2017 18:06:26 +0000: This also fails: # /etc/init.d/mongod start redirecting to systemctl start mongod.service Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory. vbaarda commented on Fri, 17 Mar 2017 17:50:13 +0000: More details: # cat /etc/os-release NAME="SLES" VERSION="12-SP2" VERSION_ID="12.2" PRETTY_NAME="SUSE Linux Enterprise Server 12 SP2" ID="sles" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:suse:sles:12:sp2" # rpm -qi mongodb-org Name : mongodb-org Version : 3.2.12 Release : 1.suse12 Architecture: x86_64 Install Date: Fri Mar 17 11:46:58 2017 Group : Applications/Databases Size : 0 License : AGPL 3.0 Signature : RSA/SHA1, Wed Feb 1 09:43:42 2017, Key ID d68fa50fea312927 Source RPM : mongodb-org-3.2.12-1.suse12.src.rpm Build Date : Wed Feb 1 09:31:09 2017 Build Host : ip-10-81-236-106.ec2.internal Relocations : /usr URL : http://www.mongodb.org Summary : MongoDB open source document-oriented database system (metapackage)
Install SLES12 SP2 SUSE Linux Enterprise Server 12 SP2 (x86_64) Add the MongoDB 3.2 Repository zypper addrepo --refresh --no-gpgcheck https://repo.mongodb.org/zypper/suse/12/mongodb-org/3.2/x86_64 mongodb Install mongodb-org zypper in mongodb-org Try to start mongod systemctl start mongod Actual results: # systemctl start mongod Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory.