Action depending on current status:
Status | Start | Stop | Restart | Reload |
---|---|---|---|---|
Socket running | on demand ? start : stop | stop socket? | nothing? | nothing? |
Service running | nothing? | stop service | restart service | reload service ( if it support, otherwise restart???) |
Socket & Service running | nothing? | stop service and socket? | stop service? | reload service? |
nothing runs | start socket or service or depends on start mode? | nothing? | nothing or start? | nothing or start? |
- [1] A service is stopped when neither the systemd socket nor service are running
- [2] A service is running when the systemd socket and/or service are running
-
Target
- when the service is stopped (see [1]), the service is started again (see [2])
-
Actions
- when neither systemd socket nor service are running
- and start mode is
on demand
- starts systemd socket
- and start mode is
on boot
ormanually
- starts systemd service
- and start mode is
- when neither systemd socket nor service are running
-
Target
- service is stopped (see [1])
-
Actions
- stops systemd service if it is running
- stops systemd socket if it is running
-
Target
- service is stopped (see [1]) and started again (see [2])
-
Actions
- calls to "stop service action" (see stop section) if the service is running (see [2])
- calls to "start service action" (see start section)
-
Target
- service is reloaded or restarted or started
-
Actions
- when the service supports reload
- and start mode is
on demand
- and systemd socket is running
- and systemd service is running
- reloads systemd service
- and systemd service is running
- and systemd socket is not running
- and systemd service is running
- reloads systemd service
- and systemd service is not running
- calls to "start service action" (see start section)
- and systemd service is running
- and systemd socket is running
- and start mode is
on boot
ormanually
- stops systemd socket if it is running
- and systemd service is running
- reloads systemd service
- and systemd service is not running
- starts systemd service
- and start mode is
- when service does not support reload
- calls to "restart service action" (see restart section)
- when the service supports reload