runit spawns the process twice after reboot

182 views Asked by At

After reboot runit respawns the program it has launched already. There are no error messages in the service log. The program registered as a service starts working properly but after about 10-15s it is being restarted by runit.

1

There are 1 answers

0
Ben Walding On

It is likely that the process is "daemonizing" / "backgrounding".

  • Shut it down using sv d <service>
  • Confirm stopped (ps)
  • Start it with /var/service/<service>/run

If the job stays running - that is good.

If it "finishes" and control returns to the shell, that is bad - you need to reconfigure the process not to run in the background.