The following changes were made:
* Added patch routine * Added patch to disable nis in default config * Updated init script to use status_of_proc * usher will now restart postfix if running
This commit is contained in:
@@ -37,13 +37,7 @@ case "$1" in
|
||||
$0 start
|
||||
;;
|
||||
status)
|
||||
pid=$(pidofproc -p "$PIDFILE" "$BINFILE");
|
||||
|
||||
if [ "$?" -ne 0 ]; then
|
||||
echo "postfix is not runing"
|
||||
else
|
||||
echo "postfix running with PID: $pid"
|
||||
fi
|
||||
status_of_proc -p "$PIDFILE" "$DAEMON"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|reload|restart|status}"
|
||||
|
||||
Reference in New Issue
Block a user