Code Review
/
sdc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
[SDC] update configuration template in chef os
[sdc.git]
/
catalog-fe
/
src
/
test
/
resources
/
CI
/
originalResources
/
scripts
/
start_apache.sh
1
#!/bin/bash
2
3
service="apache2"
4
5
if (( $(ps -ef | grep -v grep | grep $service | wc -l) > 0 ))
6
then
7
sudo /etc/init.d/$service restart
8
else
9
sudo /etc/init.d/$service start
10
fi