Service doesn't start at boot

Latest response

I created a service named fldcd, put the fldcd.service file in /usr/lib/systemd/system, executed systemctl enable fldcd.service, but in /etc/systemd/system there is no the link to the .service file.

I put the executable and the libraries in /usr/bin/fldc. Added this path in the file /etc/ld.so.conf.d/fldcd.conf.

This is the .service file:
**
[Unit]
Description=XXXXXXXXX
After=syslog.target network.target mariadb.target
Requires=mariadb.service

[Service]
Type=forking
ExecStart=/usr/bin/fldc/fldcd
Restart=always
**
I can start and stop the service but at boot it doesn't start.

If I remove the after and requires directive, the behavior is the same.

Could you help me? Thank you.

Responses