diff options
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"); |