0
I have problems starting some applications on boot that I have made to run an ArchLinux Environment (running in a VM).
I have some executable (programmed in C++ and Python) that must start when the VM (Oracle) starts Arch Linux.
I have programmed for this a shell script (that I have tested and I have also gave the required privileges) that starts this two processes (that they remains active forever in the session) and I have also designated a service that actually must start the Shell (in ../System/..) but even if the command systemctl enable/start/Status
said that everything is ok I don’t see the processes (using ps command).
I am not sure but I could imagine that service start the process but in the end they are killed somehow even if the shell script the process are with &
.
The strange thing is that the same routine that I have used to mount a folder is acceptable and it is ok but somehow (maybe inexperience) I cannot succeed to autostart this two process.
Here is my shell script:
#!/bin/sh
/bin/python3 /myPath/firstexe &
/bin/python3 /myPath/secondexe &
The result of:
systemctl Status myservice.service
Is:
...
Process:ExecStart=.../myshell (Code=exited, Status=0/SUCCESS)
...
Could you help me to solve this problem?
Thanks I will try to follow your advice an split into two services (without passing through a shell script) and deal with the forking type... really thanks – Giovanni – 2019-09-17T15:09:24.130