I want to run PhantomJS in webdriver mode as a service on a CentOS box.
I created this systemd file but somehow the command-line argument is not accepted. The error message is Unit phantomjs-webdriver.service failed to load: Invalid argument.
[Unit]
Description=PhantomJS Webdriver
After=syslog.target
[Service]
User=xxxxx
ExecStart=phantomjs --webdriver=4444
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
Is it at all possible to use command-line switches in ExecStart
?