vhost-stack/systemd/vhost-reload-php.service
Matthew Saunders Brown c3ffd5c419 rework systemd stuff
move service to paths.target
remove startup dependency
change to try-reload-or-restart which has this logic:
  Reload service if it supports it.
  If not, stop and then start instead.
  Does nothing if the service is not running.
2023-12-20 10:07:20 -08:00

8 lines
132 B
Desktop File

[Unit]
Description=Reload PHP-FPM
[Service]
Type=oneshot
ExecStartPre=sleep 2
ExecStart=systemctl try-reload-or-restart php8.1-fpm