Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Elijah Grubb
emulab-devel
Commits
74428fce
Commit
74428fce
authored
Oct 12, 2015
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cluster-status wrapper startup. MAINSITE only.
parent
73b89200
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
rc.d/GNUmakefile.in
rc.d/GNUmakefile.in
+4
-0
rc.d/cluster-status.sh.in
rc.d/cluster-status.sh.in
+33
-0
No files found.
rc.d/GNUmakefile.in
View file @
74428fce
...
...
@@ -30,6 +30,7 @@ SUBDIR = rc.d
WINSUPPORT = @WINSUPPORT@
PELABSUPPORT = @PELABSUPPORT@
ELVINCOMPAT = @ELVIN_COMPAT@
TBMAINSITE = @TBMAINSITE@
SYSTEM := $(shell uname -s)
include $(OBJDIR)/Makeconf
...
...
@@ -38,6 +39,9 @@ RC_SCRIPTS = 2.mysql-server.sh 3.mfrisbeed.sh 3.testbed.sh \
2.dhcpd.sh 1.mysql-client.sh 2.tbdbcheck.sh
SUBBOSS_SCRIPTS = 2.dhcpd.sh 3.mfrisbeed-subboss.sh arplock.sh
OPS_SCRIPTS = 3.and.sh 1.mysql-client.sh 1.mysql-server.sh arplock-opsfs.sh
ifeq ($(TBMAINSITE),1)
OPS_SCRIPTS += cluster-status.sh
endif
ifeq ($(ELVINCOMPAT),1)
OPS_SCRIPTS += 2.elvind.sh 3.elvin_gateway.sh
endif
...
...
rc.d/cluster-status.sh.in
0 → 100644
View file @
74428fce
#!/bin/sh
# PROVIDE: cluster-status
# REQUIRE: NETWORKING
# BEFORE: apache22
# KEYWORD: nojail shutdown
logfile
=
@prefix@/log/cluster-status.log
case
"
$1
"
in
start|faststart|quietstart|onestart|forcestart
)
if
[
-x
@prefix@/sbin/daemon_wrapper
]
;
then
echo
-n
" cluster-status wrapper"
@prefix@/sbin/daemon_wrapper
-n
cluster-status
-l
$logfile
\
@prefix@/sbin/cluster-status
else
@prefix@/sbin/cluster-status
>
$logfile
2>&1 &
echo
"
$!
"
>
/var/run/cluster-status_wrapper.pid
fi
;;
stop|faststop|quietstop|onestop|forcestop
)
if
[
-r
/var/run/cluster-status_wrapper.pid
]
;
then
kill
`
cat
/var/run/cluster-status_wrapper.pid
`
fi
;;
*
)
echo
""
echo
"Usage:
`
basename
$0
`
{ start | stop }"
echo
""
exit
64
;;
esac
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment