Created
July 13, 2018 20:30
-
-
Save LAKostis/05ced8ebbb6ddf73e1c90e6bb9f37a5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /root/sympa 2017-12-22 06:31:10.000000000 +0000 | |
+++ /etc/init.d/sympa 2018-07-13 20:21:44.995899568 +0000 | |
@@ -32,7 +32,7 @@ sympaconf="/etc/sympa/sympa.conf" | |
sympapiddir="/var/run/sympa/" | |
sympalockdir="/var/lock/subsys" | |
- | |
+RETVAL=1 | |
if [ -f /etc/sysconfig/network ]; then | |
# Get config. | |
@@ -288,6 +288,7 @@ case "$1" in | |
echo "Try \"sympa status\" or \"sympa restart"\". | |
fi | |
+ RETVAL=$? | |
;; | |
stop) | |
echo "Stopping Sympa subsystem: " | |
@@ -314,6 +315,7 @@ case "$1" in | |
if [ -f ${sympalockdir}/sympa ]; then | |
rm -f ${sympalockdir}/sympa | |
fi | |
+ RETVAL=$? | |
;; | |
status) | |
echo "Status of Sympa subsystem: " | |
@@ -327,6 +329,7 @@ case "$1" in | |
sympa_status archived | |
sympa_status bounced | |
sympa_status task_manager | |
+ RETVAL=$? | |
;; | |
restart) | |
echo "Restarting Sympa subsystem: " | |
@@ -339,5 +342,5 @@ case "$1" in | |
;; | |
esac | |
-exit 0 | |
+exit $RETVAL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment