CentOS7: 04-PhantomJS Service Wrapper
create phantomjs service script
/etc/init.d/phantomjs
[setup@c7 ~]$ cd /etc
[setup@c7 etc]$ cd init.d
[setup@c7 init.d]$ ls
functions netconsole network README
[setup@c7 init.d]$ touch phantomjs
touch: cannot touch ‘phantomjs’: Permission denied
[setup@c7 init.d]$ sudo touch phantomjs
sudo chmod +x phantomjs
create phantomjs config script
/etc/default/phantomjs