I 'm trying to run a phpscript on startup of centos7. Currently systemd process looks like below
[Unit]
Description=custom Service
After=network.target
[Service]
Type=forking
User=root
ExecStart=/usr/bin/php /var/www/htdocs/mysite/public/index.php abc xyz >> /var/log/custom.log 2>&1
[Install]
WantedBy=multi-user.target
But above script is not passing arguments. How could I fix the issue ? Thanks!