B4J Question RPI 3B - Can't start application within the service

EvgenyB4A

Active Member
Licensed User
Longtime User
I try to launch my B4J non-ui app as service on Raspberry PI model 3.
The app works fine when I launch it from CLI.
From the service it doesn't launch - the file ServiceError (from systemctl command) is attached.

What maybe the reason?
 

Attachments

  • LevelLoadManager22-12.zip
    11.8 KB · Views: 158
  • ServiceError.txt
    1.4 KB · Views: 179
  • myapp1.service.txt
    207 bytes · Views: 154

EvgenyB4A

Active Member
Licensed User
Longtime User
What is the info you need and how to retrieve it?
You can see in the main.java string 28 that app crashes immediately at appstart.
I tried to launch in the service the simple "Hello world" app instead and then service starts succesfully.
 
Upvote 0

EvgenyB4A

Active Member
Licensed User
Longtime User
I also launched b4j-bridge as the service and it has been launched successfully.
So, what is the reason may cause to crash my app immediately when launch in the service?
 
Upvote 0

EvgenyB4A

Active Member
Licensed User
Longtime User
The problem is solved.
I inserted in myapp.service file the string: WorkingDirectory=home/pi in the section [Service] before ExecStart.
Now the service work fine.
 
Upvote 0
Top