The systemctl command that starts the service will not return to Fedora 22

In the directory /lib/systemd/system I created the XYZ.service file. When starting systemctl start XYZ it does not return. I had to do Ctrl-C to exit the command. I wonder why. Interesting, after I typed Ctrl-C. I can access the XYZ service.

Any idea what I did wrong? Thanks.

Here is the XYZ.service file

 [Unit] Description=XYZ After=network.target [Service] Type=forking ExecStart=/var/www/html/XYZ/ctrler [Install] WantedBy=multi-user.target 
+4
source share
1 answer

Most likely, your team is not forked, sometimes called daemonizing. You said Type=forking , which means that the command should do fork () , and let the parent return when everything is configured and the service is up and running. Your systemctl team expects this to happen.

If the command runs without overlapping, you can specify systemd by setting Type=simple .

For more information on the Type configuration, see the manual page for systemd.service.

+4
source

All Articles