We are planning to move httpd service to a Centos7 machine, in my current Centos6 configuration I have a pre-init script which will be executed before starting apache. The script will accept the user sommand line argument(for ex: serice httpd start) and check the following and execute few things before start the service. I am wondering the same can be done in Centos7 with systemd. Any help will be appeciated.
Command-line argument support while a service start
We are planning to move httpd service to a Centos7 machine, in my current Centos6 configuration I have a pre-init script which will be executed before starting apache. The script will accept the user sommand line argument(for ex: serice httpd start) and check the following and execute few things before start the service. I am wondering the same can be done in Centos7 with systemd. Any help will be appeciated.
[ "$1" == "start" -o "$1" == "restart" -o "$1" == "condrestart" ]