Activity
From 03/23/2018 to 04/21/2018
03/26/2018
- JC 01:56 PM Software Development: RE: Launching Linux Application on Startup
- You also want to figure out where this poll is happening in your code or perhaps a driver you've included. And what action the code is supposed to take when receiving the ERESTART_RESTARTBLOCK signal.
- JC 01:52 PM Software Development: RE: Launching Linux Application on Startup
- > poll([{fd=4,
You need to look higher up in the strace log to find out which file is opened as fd (file descriptor) 4. Note that the file descriptors are reused so a file can be opened early on get fd 4 and then be closed and a new fi...
03/25/2018
- OÇ 12:05 PM Software Development: RE: Launching Linux Application on Startup
- Hi, Jonathan,
I did what you suggested.
The application seems to fail at startup because of a @poll@ call.
*Startup trace:*
03/23/2018
- JC 01:34 PM Software Development: RE: Launching Linux Application on Startup
- Note that you can filter the strace output to reduce the amount of data you get. https://stackoverflow.com/a/30034030
- JC 01:28 PM Software Development: RE: Launching Linux Application on Startup
- Okan Çalış wrote:
> > > +[[Linux Startup Process - Systemd]]+
> ...
Good catch. I'd guess that your service type should be @simple@ instead of oneshot since your program isn't expected to exit. But idle is similar to simple and that ... - OÇ 08:39 AM Software Development: RE: Launching Linux Application on Startup
- I also tried switching @Type@ to @idle@ to ensure the service is not invoked before all other jobs are completed, but that didn't work, either.
Isn't there a way that simulates me typing @./app_name@ with the keyboard after tty is ava... - OÇ 08:18 AM Software Development: RE: Launching Linux Application on Startup
- > > +[[Linux Startup Process - Systemd]]+
> ...
You're right. This one was already working, but I didn't realize it because it couldn't print anything. Adding "@StandardOutput=tty@" to the service file solved this. Here's my service file: