Use NotifyAccess=all in all unit files

When systemd-python is not installed, systemd notification falls back to
using the systemd-notify for service notification. This cannot be used
however unless the unit has NotifyAccess=all set.

The particular use case for this is when Salt is installed using pip. We
don't put systemd-python into the requirements.txt because we can't be
sure that the minion supports systemd, so pip installs won't necessarily
have systemd-python available.
This commit is contained in:
Erik Johnson 2016-10-19 10:08:10 -05:00
Родитель 0ccf789172
Коммит fb6e545f78
5 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -4,6 +4,7 @@ After=network.target
[Service] [Service]
Type=notify Type=notify
NotifyAccess=all
LimitNOFILE=8192 LimitNOFILE=8192
ExecStart=/usr/bin/salt-minion ExecStart=/usr/bin/salt-minion

Просмотреть файл

@ -4,6 +4,7 @@ After=network.target
[Service] [Service]
Type=notify Type=notify
NotifyAccess=all
LimitNOFILE=8192 LimitNOFILE=8192
ExecStart=/usr/bin/salt-syndic ExecStart=/usr/bin/salt-syndic

Просмотреть файл

@ -4,6 +4,7 @@ After=network.target
[Service] [Service]
Type=notify Type=notify
NotifyAccess=all
LimitNOFILE=8192 LimitNOFILE=8192
ExecStart=/usr/bin/salt-api ExecStart=/usr/bin/salt-api
TimeoutStopSec=3 TimeoutStopSec=3

Просмотреть файл

@ -4,6 +4,7 @@ After=network.target
[Service] [Service]
Type=notify Type=notify
NotifyAccess=all
LimitNOFILE=8192 LimitNOFILE=8192
ExecStart=/usr/bin/salt-minion ExecStart=/usr/bin/salt-minion

Просмотреть файл

@ -4,6 +4,7 @@ After=network.target
[Service] [Service]
Type=notify Type=notify
NotifyAccess=all
LimitNOFILE=8192 LimitNOFILE=8192
ExecStart=/usr/bin/salt-syndic ExecStart=/usr/bin/salt-syndic