Changeset ed5367b in mainline for uspace/srv/sysman/unit.c


Ignore:
Timestamp:
2019-08-07T10:01:13Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
a097c50
Parents:
68ae40a
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-11-05 01:52:07)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 10:01:13)
Message:

sysman: Implement stopping units

Currently fails service monitoring because of taskman flawed event flags.
However, job closure works well.

File:
1 edited

Legend:

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

    r68ae40a red5367b  
    142142}
    143143
     144/** Issue request to restarter to stop a unit
     145 *
     146 * Same semantics like for unit_start applies.
     147 */
     148int unit_stop(unit_t *unit)
     149{
     150        sysman_log(LVL_DEBUG, "%s('%s')", __func__, unit_name(unit));
     151        return UNIT_VMT(unit)->stop(unit);
     152}
     153
    144154void unit_exposee_created(unit_t *unit)
    145155{
Note: See TracChangeset for help on using the changeset viewer.