FreeBSD 11.1 p9
PHP 5.6.36
MySQL 5.7.22
I have some commands listed below which I would like ran when the server starts up. Normally I manually run them from SSH after the server has booted up but sometimes I forget to do so which causes all sorts of problems onsite ...
Is there an easy way or is it likely I will need to create a script in the rc.d directory ?
PHP 5.6.36
MySQL 5.7.22
I have some commands listed below which I would like ran when the server starts up. Normally I manually run them from SSH after the server has booted up but sometimes I forget to do so which causes all sorts of problems onsite ...
Code:
cd /websites/pgls/forums/chatrooms/socket
./server stop
cd ..
php -f FlashPolicyService.php
cd socket
./server start
Is there an easy way or is it likely I will need to create a script in the rc.d directory ?