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

Instead of relying on existing service/role directories create them on s... #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

morphis
Copy link
Contributor

@morphis morphis commented Aug 21, 2013

...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 morphis@gravedo.de

…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 <morphis@gravedo.de>
@ghost ghost assigned kdopen Aug 21, 2013
@lemketron
Copy link
Member

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.

@morphis
Copy link
Contributor Author

morphis commented Aug 21, 2013

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).

Copy link

@ohhmm ohhmm left a 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);
Copy link

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?

@ohhmm
Copy link

ohhmm commented May 16, 2021

Hi @kdopen,

I guess we missed this back then.

Have a nice day,
Serg

@ericblade
Copy link

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.

@ohhmm
Copy link

ohhmm commented Apr 23, 2022

Just was grooming through my old work:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants