[Unit] After=network.target local-fs.target [Service] Type=oneshot # sleep to give time for php-fpm to start first # testing showed 2 seconds enough, using 5 for exra buffer ExecStartPre=sleep 5 ExecStart=/usr/local/sbin/vpanel-php-fpm-socket-helper.sh [Install] WantedBy=multi-user.target