Changeset 8d74fdd in mainline for uspace/srv/sysman/main.c


Ignore:
Timestamp:
2019-08-17T13:57:05Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
f92b315
Parents:
be07995
git-author:
Michal Koutný <xm.koutny+hos@…> (2016-01-27 00:01:13)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-17 13:57:05)
Message:

sysman: Shutdown operation as shutdown.tgt isolation

Since not all dependencies are captured by graph, sysman and taskman are
ignored when stopping servers, so that they can complete the shutdown
transition.

Conflicts:

boot/Makefile.common

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/main.c

    rbe07995 r8d74fdd  
    3838#include <taskman.h>
    3939
    40 #include "repo.h"
    4140#include "connection_broker.h"
    4241#include "connection_ctl.h"
     
    4443#include "job_queue.h"
    4544#include "log.h"
     45#include "repo.h"
     46#include "sm_task.h"
    4647#include "sysman.h"
    47 #include "sm_task.h"
    4848#include "unit.h"
    4949
    5050#define NAME "sysman"
    51 
    52 #define INITRD_DEVICE       "bd/initrd"
    53 #define INITRD_MOUNT_POINT  "/"
    54 #define INITRD_CFG_PATH     "/cfg/sysman"
    55 
    56 #define TARGET_INIT     "initrd.tgt"
    57 #define TARGET_ROOTFS   "rootfs.tgt"
    58 #define TARGET_DEFAULT  "default.tgt"
    59 
    60 #define UNIT_MNT_INITRD "initrd.mnt"
    61 #define UNIT_CFG_INITRD "init.cfg"
    62 
    6351
    6452static const char *target_sequence[] = {
     
    195183        }
    196184
    197         int rc = sysman_run_job(tgt, STATE_STARTED, &sequence_job_handler,
     185        int rc = sysman_run_job(tgt, STATE_STARTED, 0, &sequence_job_handler,
    198186            target_name_ptr);
    199187
Note: See TracChangeset for help on using the changeset viewer.