upstart question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I am trying to migrate from old /etc/inittab to upstart.
I am close.

I used to have 2 or 4 lines in /etc/inittab to start 2 or 4 processes.
v1:2345:respawn:/home/silentm/bin/myfile -port 4000
v2:2345:respawn:/home/silentm/bin/myfile -port 5000

something like that...

So now I create a file /etc/init/myfile.conf and in it I put:

respawn
script
/home/silentm/bin/myfile -port 4000
/home/silentm/bin/myfile -port 5000
endscript

Only the first process is created. I think I have to do something with 
"instance 2"
but I wasnt getting results with that either.

What am I missing in the myfile.conf to get the two processes running ?

Thanks,

Jerry
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux