Cannot start vflow at boot
Hello folks:
I am trying to start vflow at system boot time after kafka service starts and trying to do this with systemd. Has anyone been successful doing this?
Following is my unit file:
**[Unit] Documentation=man:systemd-sysv-generator(8) SourcePath=/etc/rc.d/init.d/vflow Description=SYSV: vFlow enterprise IPFIX, sFlow v5 raw header collector and Kafka/NSQ producer After=network-online.target After=network.service After=kafka.service Conflicts=shutdown.target
[Service] Type=forking User=root Restart=always TimeoutSec=5min IgnoreSIGPIPE=no KillMode=process GuessMainPID=no RemainAfterExit=yes ExecStart=/etc/rc.d/init.d/vflow start ExecStop=/etc/rc.d/init.d/vflow stop
[Install] WantedBy=multi-user.target**
I am installing vflow on Centos 7.5. Even though the service shows "running" (systemctl status vflow), I cannot see any vflow process. Everything starts normally when I enter "systemctl restart vflow".
Please let me know if I am doing something wrong.
Thanks