-
Notifications
You must be signed in to change notification settings - Fork 49
Generate log directory, if it does not exist #403
Generate log directory, if it does not exist #403
Conversation
what... |
I am not pretty sure if we should do it here. Usually we don't start cluster by |
Yeah, chaos uses this method. |
In fact, I have always been confused. |
Yeah, if we create log_dir in program instead of scripts, I think it is ok, just add to graph as well. |
66ce36e
to
7d09c97
Compare
Agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good jooooob
* Generate log directory, if it does not exist * update conf (cherry picked from commit b472166)
As title
When we start the service with the following script, the log directory will be created in the script.
./scripts/nebula.service -c xxx/etc/nebula-storaged.conf start storaged> /dev/null 2>&1 &
But when we start the service in other ways, because the directory log does not exist, the startup fails.
xxx/bin/nebula-storaged --flagfile xxx/etc/nebula-storaged-1.conf >1.log 2 >&1 &
Therefore, before starting the service, the log directory needs to be created automatically when it does not exist.