linux – Systemd service that quits after the successful execution of child processes

Unit file:

[Service]



Type = simple
#PIDFile = /var/run/learninglocker.pid
ExecStart = / usr / bin / npm start
ExecStop = / usr / bin / npm stop
WorkingDirectory = / opt / learninglocker
User = root
Group = root
EnvironmentFile = / opt / learninglocker / environment
StandardOutput = syslog
StandardError = syslog
SyslogIdentifier = learninglocker
LimitCORE = infinite
NOFILE limit = infinite
LimitNPROC = infinite
RemainAfterExit = true
# ExecStartPre = / bin / sleep 90

[Unit]
After = network.target

[Install]
WantedBy = multi -user.target

"npm start" executes 4 new processes. The problem is that after the 4 new processes are running, the main process is exited.
I've tried using "forking" and PIDfile, and then the state of the process is "failed" after the successful execution of child processes.

Do you think something is wrong with that?