Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systemd script not working #30

Closed
samuelebistoletti opened this issue Jan 23, 2017 · 3 comments
Closed

Systemd script not working #30

samuelebistoletti opened this issue Jan 23, 2017 · 3 comments

Comments

@samuelebistoletti
Copy link
Contributor

Systemd script is not working when trying to start the application packaged with distillery.

I got this error:
Active: failed (Result: exit-code) since lun 2017-01-23 12:10:53 CET; 3min 17s left
Process: 593 ExecStop=/opt/app/bin/app stop (code=exited, status=1/FAILURE)
Process: 487 ExecStart=/opt/app/bin/app start (code=exited, status=0/SUCCESS)
Main PID: 591 (code=exited, status=0/SUCCESS)

If I try to start the app with: /opt/app/bin/app start, it works, so the problem must be systemd script itself.

@johnhamelink
Copy link
Owner

Hey there :)

I looks from your logs like the app did start up when systemd executed the command under ExecStart - can you verify that when you run "start " manually it doesn't start up? Could you should the logs for that as well?

@samuelebistoletti
Copy link
Contributor Author

When I start the app manually it starts, it responds to /opt/app/bin/app ping, then I stop with /opt/app/bin/app stop, and if i try to start it with systemd i got the failure. The app in this case is not starting, i can't reach it or see a pid.

samuelebistoletti pushed a commit to samuelebistoletti/exrm_deb that referenced this issue Jan 23, 2017
johnhamelink pushed a commit that referenced this issue Jan 23, 2017
@johnhamelink
Copy link
Owner

@samuelebistoletti thank you for that PR! I have merged it and I will deploy a release as soon as I am able to.

samuelebistoletti pushed a commit to samuelebistoletti/exrm_deb that referenced this issue Jan 25, 2017
Added codename configuration, system architecture now is chained to .deb file name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants