Please provide systemD scripts for CentOS7. It's the most native form.
The problematic generated file looks like:
root@abcdef.be:~# systemctl status mongod.service ● mongod.service - SYSV: Mongo is a scalable, document-oriented database. Loaded: error (Reason: Bad message) Active: inactive (dead) Docs: man:systemd-sysv-generator(8) Jul 29 15:47:26 abcdef.be systemd[1]: [/run/systemd/generator.late/mongod.service:9] Missing '='. Jul 29 15:49:38 abcdef.be systemd[1]: Starting SYSV: Mongo is a scalable, document-oriented database.... Jul 29 15:49:38 abcdef.be runuser[31634]: pam_unix(runuser:session): session opened for user mongod by (uid=0) Jul 29 15:49:38 abcdef.be mongod[31625]: Starting mongod: [ OK ] Jul 29 15:49:38 abcdef.be systemd[1]: Started SYSV: Mongo is a scalable, document-oriented database.. Aug 01 10:00:20 abcdef.be systemd[1]: Stopping SYSV: Mongo is a scalable, document-oriented database.... Aug 01 10:00:22 abcdef.be systemd[1]: Stopped SYSV: Mongo is a scalable, document-oriented database.. Aug 01 10:00:22 abcdef.be mongod[65435]: Stopping mongod: [ OK ] Aug 01 10:00:39 abcdef.be systemd[1]: [/run/systemd/generator.late/mongod.service:8] Failed to add dependency on php-fpm-let, ignoring: Invalid argument Aug 01 10:00:39 abcdef.be systemd[1]: [/run/systemd/generator.late/mongod.service:9] Missing '='.
root@abcdef.be:~# cat /run/systemd/generator.late/mongod.service # Automatically generated by systemd-sysv-generator [Unit] Documentation=man:systemd-sysv-generator(8) SourcePath=/etc/rc.d/init.d/mongod Description=SYSV: Mongo is a scalable, document-oriented database. Before=runlevel3.target runlevel5.target shutdown.target After=network-online.target php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service network.service php-fpm-abcdef.be.service vmware-tools.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service Conflicts=shutdown.target [Service] Type=forking Restart=no TimeoutSec=5min IgnoreSIGPIPE=no KillMode=process GuessMainPID=no RemainAfterExit=no PIDFile=/var/run/mongodb/mongod.pid ExecStart=/etc/rc.d/init.d/mongod start ExecStop=/etc/rc.d/init.d/mongod stop ExecReload=/etc/rc.d/init.d/mongod reload
root@abcdef.be:~# diff /run/systemd/generator.late/mongod.service /tmp/working.mongod.service 8c8 < After=network-online.target php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service network.service php-fpm-abcdef.be.service vmware-tools.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service php-fpm-abcdef.be.service --- > After=network-online.target php-fpm-abcdef.be.service
The data was anonymized using: php-fpm-(.*)\.service with gU flags with substitution pattern: php-fpm-abcdef.be.service
Name : mongodb-org Arch : x86_64 Version : 2.6.12 CentOS Linux release 7.2.1511 (Core)