Skip to content

Commit

Permalink
Add Debian servers shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-le-graverend committed Apr 17, 2013
1 parent d7e0670 commit 1b724d0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ if grep -q "Ubuntu" /etc/issue; then
alias apstop='sudo service apache2 stop'
alias aptest='sudo service apache2 configtest'
fi
if grep -q "Debian" /etc/issue; then
alias ngstart='sudo service nginx start'
alias ngrestart='sudo service nginx restart'
alias ngreload='sudo service nginx reload'
alias ngstop='sudo service nginx stop'
alias ngtest='sudo service nginx configtest'

alias apstart='sudo service apache2 start'
alias aprestart='sudo service apache2 restart'
alias apreload='sudo service apache2 reload'
alias apstop='sudo service apache2 stop'
alias aptest='sudo service apache2 configtest'
fi
if grep -q "CentOS" /etc/issue; then
alias ngrestart='sudo /etc/init.d/nginx restart'
alias ngreload='sudo /etc/init.d/nginx reload'
Expand Down

0 comments on commit 1b724d0

Please sign in to comment.