Skip to content

Commit

Permalink
systemd: make READY notifications work
Browse files Browse the repository at this point in the history
Sending a READY=1 notification (as in pac4cli/servicemanager.py)
has no use unless we also configure `Type=notify`. And because
we fork out from the executable `pac4cli` to `python3 -m pac4cli`,
we need to configure `NotifyAccess=all` to ensure to child
process gets to send this notification.
  • Loading branch information
tkluck authored and kdehairy committed Nov 13, 2018
1 parent 0729f99 commit c724dcb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pac4cli.service
Expand Up @@ -4,8 +4,10 @@ Requires=NetworkManager.service
After=NetworkManager.service

[Service]
Type=notify
ExecStart=/usr/local/bin/pac4cli -p 3128 --systemd --config /etc/pac4cli/pac4cli.config --loglevel warn
Restart=always
NotifyAccess=all

[Install]
WantedBy=network.target

0 comments on commit c724dcb

Please sign in to comment.