bash

homebrew fpm restart

If you dont have bin in your home make it.
cd
mkdir bin
nano fpm-restart
Paste this.
#!/bin/sh
 
echo "Stopping php-fpm..."
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.php5*.plist
 
echo "Starting php-fpm..."
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php5*.plist
 
echo "php-fpm restarted"
exit 0
Then:
chmod ug+x fpm-restart
Tags: 
Subscribe to RSS - bash

 

Hessen Kasselstraat 8
5615 SM Eindhoven
phone: +316-81888456