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

Config file for daemons #6

Open
noBotHereDude opened this issue Sep 9, 2019 · 1 comment
Open

Config file for daemons #6

noBotHereDude opened this issue Sep 9, 2019 · 1 comment

Comments

@noBotHereDude
Copy link

Do I need to specify a configuration file to run the daemons?

$ bash siahsd-init-script start
Starting SIA-HS Daemon: 
** (process:24555): ERROR **: 16:47:29.209: No such file or directory
siahsd-init-script: line 23: 24555 Trace/breakpoint trap   start-stop-daemon --start --quiet --pidfile "$PIDFILE" --chuid "$USER" --exec "$DAEMON" -- $DAEMON_ARGS
FAILED.

This send the error output line in config.c:

if (!g_key_file_load_from_file (conf->keyfile, CONFIGFILE, 0, &error)) {
    g_error ("%s", error->message);
    g_error_free(error);
    return ST_CONFIGURATION_ERROR;
}
@noBotHereDude
Copy link
Author

Just put an absolute path in config.c:

if (!g_key_file_load_from_file (conf->keyfile, "/etc/sishsd.conf", 0, &error)) {
    g_error ("%s", error->message);
    g_error_free(error);
    return ST_CONFIGURATION_ERROR;
}

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

No branches or pull requests

1 participant