I am currently working on a project which needs to be added to
inittab so that the program loads during startup.
The program that I am trying to start is a c# mono application. I have created a start script and if the start script is run manually the program launches fine. However, when I put it into
inittab the program doesn't launch.
I've checked in
/var/log/messages but it doesn't say anything is wrong, it just says that it is reloading.
Below is what I have added to my
Thanks for any help you can provide
UPDATE Below is the code in the start script which is located in /home/bits/MyProgram.
#!/bin/sh cd /home/bits/MyProgram /usr/bin/mono EmailServer.exe "$@"
I have also tried adding > mylog.txt onto the end of the line beginning with /usr/bin/mono e.g.
/usr/bin/mono EmailServer.exe "$@" > mylog.txt
If I run the start script manually, even if I am not in the directory where the start script is located it works fine, its just when I add it to inittab and run telinit q it never starts and the log isn't written to but the log does get written to if I start the program manually.
Thanks for any help you can provide.