Jasmin shahrzad
asked on
service exited
i ubuntu 16.04( lxd ) i have a jar file. normally i create a link in /etc/init.d from jar file and systemctl daemon-reload, then i start my jar service(systemctl start "mt-service"
i did also here but servoces mark exited and say Docs: man:systemd-syv-generator( 8).
...
What is wrong here?
i did also here but servoces mark exited and say Docs: man:systemd-syv-generator(
...
What is wrong here?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if arbitrarily sets remain-after-exit=yes and type=simple which produces such idiotic behaviors where a forking service that dies would be in a 'square root of dead+alive' state. (started , exited for example)
the simplest way would be to create a .service file in /etc/systemd/ rather that the one systemd creates i believe in /var/lib/systemd. the automated file will not be created if you name the service identically to the init file