|
@@ -76,8 +76,21 @@ case "$1" in
|
76
|
76
|
$0 start
|
77
|
77
|
ret=$?
|
78
|
78
|
;;
|
|
79
|
+ status)
|
|
80
|
+ log_daemon_msg "postsrsd is running"
|
|
81
|
+ if [ -s $PIDFILE ]; then
|
|
82
|
+ PID=`cat $PIDFILE`
|
|
83
|
+ if kill -0 "$PID" 2>/dev/null; then
|
|
84
|
+ log_end_msg 0
|
|
85
|
+ else
|
|
86
|
+ log_end_msg 1
|
|
87
|
+ fi
|
|
88
|
+ else
|
|
89
|
+ log_end_msg 1
|
|
90
|
+ fi
|
|
91
|
+ ;;
|
79
|
92
|
*)
|
80
|
|
- echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
|
|
93
|
+ echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2
|
81
|
94
|
exit 1
|
82
|
95
|
;;
|
83
|
96
|
esac
|