[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: jessie systemd shutdown sequence



On 26/04/16 16:21, Vladislav Kurz wrote:
So what I would like to achieve is to set somehow the dependencies in systemd,
so that networking is deconfigured only after all services are stopped, and
that SSH is the last service to stop.

Documentation starting point for your particular problem (systemd has a lot of man pages, and on Debian they are installed as part of the systemd package so should always be present):

$ man systemd.unit
$ man systemd.service

You probably want to look at the 'After=' and 'Before=' directives, which can be used to say "unit A must not be started until after unit B has been successfully started, and unit A must be stopped before unit B can be stopped".


Reply to: