Skip to content

refactor: update debian script. #965

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

Merged
merged 1 commit into from
Feb 18, 2017
Merged

refactor: update debian script. #965

merged 1 commit into from
Feb 18, 2017

Conversation

appleboy
Copy link
Member

This PR fix script on Debian 8.

@lunny lunny added this to the 1.1.0 milestone Feb 17, 2017
@strk
Copy link
Member

strk commented Feb 17, 2017

Does this handle #210 too ?

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 17, 2017
@appleboy
Copy link
Member Author

@strk No.

@appleboy
Copy link
Member Author

Just fix start/stop/reload on Debian 8 using system init.

@strk
Copy link
Member

strk commented Feb 17, 2017

LGTM -- I noticed it drops the redirection of stdout to /dev/null (or am I wrong?)

@tboerger tboerger added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Feb 17, 2017
@appleboy
Copy link
Member Author

@strk Yes, you are right. I will fix that.

@strk
Copy link
Member

strk commented Feb 17, 2017 via email

@appleboy
Copy link
Member Author

@strk Yes I know your point. I think we need create another PR to fix problem you reference.

@appleboy
Copy link
Member Author

appleboy commented Feb 17, 2017

@strk Missing your comment. All messages already logged on /home/git/log not /dev/null

$ cat /home/git/log/
gitea.log  http.log   xorm.log

But missing some http log like below:

[Macaron] 2017-02-16 21:25:57: Started GET /appleboy/4 for [::1]
[Macaron] 2017-02-16 21:25:57: Completed /appleboy/4 500 Internal Server Error in 44.258252ms
[Macaron] 2017-02-16 21:25:59: Started GET /favicon.ico for [::1]
[Macaron] 2017-02-16 21:25:59: Completed /favicon.ico 200 OK in 4.514718ms

@strk
Copy link
Member

strk commented Feb 17, 2017

@appleboy when I first filed that issue (in Gogs) what I was after was mostly Panic messages, which were printed to stderr I think (or stdout) and so always got lost. I proposed a PR which redirected stdout/stderr to a file but was not merged because not portable. Indeed it looks like having the caller (the Debian script, in this case) doing that redirection was one simple way to obtain what I was asking for. I don't know what the current idea is. Me I'd be ok with having everything going to stdout and then delegate redirection to the wrapper, so as I see you're touching that script I wonder... is there a standard way to deal with stdout/stderr in those scripts ? Should we adopt the same way ? Just let's make sure Panic messages are not lost though, as that's really bad when your server respond with Internal Server Error messages and you can't know what's going on.

@appleboy
Copy link
Member Author

@strk I know your point. I will take look at it and create another after this is merged. ok?

@strk
Copy link
Member

strk commented Feb 17, 2017

Thanks @appleboy !

@andreynering
Copy link
Contributor

Trusted LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 17, 2017
@lunny lunny merged commit 252adc9 into go-gitea:master Feb 18, 2017
@appleboy appleboy deleted the script branch February 18, 2017 14:43
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants