diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-27 00:15:56 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-27 00:15:56 +0100 |
commit | 0301abf48ed3be921c33d409c73b554435cf6378 (patch) | |
tree | a519dad97ab1eb945be1999c2892aa2fe25509c3 /main.c | |
parent | 87f0e418cf2c58b3201d06a60e3696ec672d2662 (diff) |
implement drop-in directories
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -14,7 +14,7 @@ int main(int argc, char *argv[]) { Job *job = NULL; int r, retval = 1; - assert_se(chdir("test1") == 0); + assert_se(set_unit_path("test1") >= 0); if (!(m = manager_new()) < 0) { log_error("Failed to allocate manager object: %s", strerror(ENOMEM)); @@ -26,10 +26,10 @@ int main(int argc, char *argv[]) { goto finish; } - if ((r = manager_add_job(m, JOB_START, target, JOB_REPLACE, false, &job)) < 0) { - log_error("Failed to start default target: %s", strerror(-r)); - goto finish; - } + /* if ((r = manager_add_job(m, JOB_START, target, JOB_REPLACE, false, &job)) < 0) { */ + /* log_error("Failed to start default target: %s", strerror(-r)); */ + /* goto finish; */ + /* } */ printf("→ By units:\n"); manager_dump_units(m, stdout, "\t"); |