-
Notifications
You must be signed in to change notification settings - Fork 20
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
Instead of relying on existing service/role directories create them on s... #2
base: master
Are you sure you want to change the base?
Conversation
…n startup It makes the service start a lot easier when the hub daemon takes care about creating the service/role directories on its own instead of doing this job as part of the init script (which is very close to the daemon anyway). Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <[email protected]>
This looks like a reasonable change, and doesn't add any specific directory names into the code since it just checks to see if conf-specified directories exist and if not it creates them. |
Yes, and it makes it pretty easy to start ls-hubd for example with systemd without caring about required directory structures (see https://github.com/webOS-ports/webos-systemd-services/blob/master/ls-hubd_private.service for example). |
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.
I would consider to put this under installation stage. See CPack related code.
if (!g_file_test(path, G_FILE_TEST_IS_DIR)) | ||
{ | ||
g_warning("WARNING: service directory \"%s\" does not exist. Attempting to create it ...", path); | ||
g_mkdir(path, 0777); |
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.
777? Why you wish to open it?
Hi @kdopen, I guess we missed this back then. Have a nice day, |
surprise on getting a comment on a commit from 8 years ago. Are you working with webOS now? i'm pretty sure that all of the current activity is over in the repos that LG made, or in LuneOS. |
Just was grooming through my old work:) |
...tartup
It makes the service start a lot easier when the hub daemon takes care about creating the
service/role directories on its own instead of doing this job as part of the init script
(which is very close to the daemon anyway).
Open-webOS-DCO-1.0-Signed-off-by: Simon Busch [email protected]