-
Notifications
You must be signed in to change notification settings - Fork 0
/
stophasrv
executable file
·27 lines (19 loc) · 1.05 KB
/
stophasrv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
#-------------------------------------------------------------------------#
# This file monitors that the services you want, are running. #
# It is up to you to make sure it matches everyting in 'starthasrv' #
# See the various templates for examples that are practically readytorun #
# with a minimum of tweaking #
# You should make sure that there will be no problems if this is called #
# multiple times. #
# Standard UNIX status: returns 0 on good, non-0 on bad. #
#-------------------------------------------------------------------------#
# This sample 'stop' script takes no arguments, but normally,
# a stop script might take arguments
PATH=$PATH:/opt/freeha/bin:/opt/freeha/bin/service_scripts
# "cat" is a dummy service script. Replace with ones relevant to you.
cat.stop
# You could have additional 'stop.xxx' commands in here, and you usually would.
# Examples:
#vip.stop 192.168.1.10
#metaset.stop metaset