Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Generate log directory, if it does not exist #873

Merged
merged 2 commits into from
Mar 25, 2021

Conversation

panda-sheep
Copy link
Contributor

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-graphd.conf start graphd> /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-graphd --flagfile xxx/etc/nebula-graphd-1.conf >1.log 2 >&1 &

Therefore, before starting the service, the log directory needs to be created automatically when it does not exist.

@panda-sheep panda-sheep added ready-for-review ready-for-testing PR: ready for the CI test labels Mar 25, 2021
@panda-sheep panda-sheep requested review from a team March 25, 2021 01:58
@yixinglu yixinglu merged commit eb06442 into vesoft-inc:master Mar 25, 2021
@panda-sheep panda-sheep deleted the gen_log_dir_if_absent branch March 25, 2021 09:02
jude-zhu pushed a commit that referenced this pull request Apr 1, 2021
Co-authored-by: Yee <[email protected]>
(cherry picked from commit eb06442)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants