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

systemv start-rpm-template redirects daemon's output to /dev/null #273

Closed
spigene opened this issue Jun 15, 2014 · 2 comments
Closed

systemv start-rpm-template redirects daemon's output to /dev/null #273

spigene opened this issue Jun 15, 2014 · 2 comments

Comments

@spigene
Copy link
Contributor

spigene commented Jun 15, 2014

Currently, systemv start script generated from start-rpm-template redirects stdout and sdterr into /dev/null (the source):

nohup runuser $DAEMON_USER ${RUN_CMD} >/dev/null 2>&1 &

This is unfortunate when things are starting to go wrong at an application's startup.
E.g., if someone specifies invalid JVM setting in /etc/default/${{app_name}} file then it's really tough (without knowing all these little details) to find out what exactly went wrong.

The issue will be much easier to solve if the mentioned line is replaced by something like that:

nohup runuser $DAEMON_USER ${RUN_CMD} >> /var/log/${{app_name}}/daemon.log 2>&1 &
@muuki88
Copy link
Contributor

muuki88 commented Jun 15, 2014

Sounds like a good plan! I'm currently very busy, but would be happy to review and test a pull request :)

Are you at the scaladays2014?

@spigene
Copy link
Contributor Author

spigene commented Jun 16, 2014

Done.
Unfortunately, not this time.

@muuki88 muuki88 closed this as completed Jun 19, 2014
@muuki88 muuki88 added the rpm label Jun 19, 2014
@muuki88 muuki88 added this to the 0.8.0 - windows services milestone Jun 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants