Link to home
Start Free TrialLog in
Avatar of Jasmin shahrzad
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?
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of skullnobrains
skullnobrains

systemd automagically creates a .service file based on files found in init.d that do not have matching systemd services.

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