Changeset 8d74fdd in mainline for uspace/srv/sysman/units


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

Location:
uspace/srv/sysman/units
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/units/unit_svc.c

    rbe07995 r8d74fdd  
    120120        assert(unit->state == STATE_STARTED);
    121121
     122        /*
     123         * Ugly trick -- critical service is running despite being stopped
     124         * circumvent killing ourselves during shutdown (TODO dependencies).
     125         */
     126        if (u_svc->critical) {
     127                unit->state = STATE_STOPPED;
     128                return EOK;
     129        }
     130
    122131        int rc = task_kill(u_svc->main_task_id);
    123132
  • uspace/srv/sysman/units/unit_svc.h

    rbe07995 r8d74fdd  
    4343
    4444        bool anonymous;
     45
     46        /** Service can't be stopped, temporary workaround for shutdown */
     47        bool critical;
    4548} unit_svc_t;
    4649
Note: See TracChangeset for help on using the changeset viewer.