summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules')
-rwxr-xr-xpuppet/modules/obfsproxy/files/obfsproxy_init9
-rw-r--r--puppet/modules/obfsproxy/manifests/init.pp2
2 files changed, 4 insertions, 7 deletions
diff --git a/puppet/modules/obfsproxy/files/obfsproxy_init b/puppet/modules/obfsproxy/files/obfsproxy_init
index 7a7e7609..b1297738 100755
--- a/puppet/modules/obfsproxy/files/obfsproxy_init
+++ b/puppet/modules/obfsproxy/files/obfsproxy_init
@@ -44,14 +44,14 @@ stop_obfsproxy() {
}
status_obfsproxy() {
- status_of_proc -p $PIDFILE $DAEMON $NAME && status="0" || status="$?"
+ status_of_proc -p $PIDFILE $DAEMON $NAME
}
case $1 in
start)
if [ -e $PIDFILE ]; then
status_obfsproxy
- if [ $status = "0" ]; then
+ if [ $? = "0" ]; then
exit
fi
fi
@@ -62,15 +62,14 @@ case $1 in
stop)
if [ -e $PIDFILE ]; then
status_obfsproxy
- if [ $status = "0" ]; then
+ if [ $? = "0" ]; then
log_begin_msg "Stopping $DESC"
stop_obfsproxy
rm -f $PIDFILE
log_end_msg $?
fi
else
- log_daemon_msg "$NAME is not running"
- log_end_msg $?
+ status_obfsproxy
fi
;;
restart)
diff --git a/puppet/modules/obfsproxy/manifests/init.pp b/puppet/modules/obfsproxy/manifests/init.pp
index 1ee44d6f..b45a60a1 100644
--- a/puppet/modules/obfsproxy/manifests/init.pp
+++ b/puppet/modules/obfsproxy/manifests/init.pp
@@ -71,8 +71,6 @@ class obfsproxy (
service { 'obfsproxy':
ensure => running,
- status => '/usr/sbin/service obfsproxy status
- | grep "is running"',
require => [
Package['obfsproxy'],
File['/etc/init.d/obfsproxy'] ]