Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
resmon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrors
resmon
Commits
994c44e9
Commit
994c44e9
authored
13 years ago
by
Mark Harrison
Browse files
Options
Downloads
Plain Diff
Merge pull request #14 from keithf4/master
Fix redhat init script
parents
bf8bc6d4
9bd090f6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/resmon_redhat_rc
+8
-8
8 additions, 8 deletions
resources/resmon_redhat_rc
with
8 additions
and
8 deletions
resources/resmon_redhat_rc
+
8
−
8
View file @
994c44e9
#!/bin/bash
#!/bin/bash
#
#
# resmon
2
Starts resmon
2
.
# resmon Starts resmon.
#
#
#
#
# chkconfig: 2345 99 01
# chkconfig: 2345 99 01
# description: resmon is a systems monitoring facility to aid nagios \
# description: resmon is a systems monitoring facility to aid nagios \
# checks. it should always be running when the system is in operation.
# checks. it should always be running when the system is in operation.
### BEGIN INIT INFO
### BEGIN INIT INFO
# Provides: $resmon
2
# Provides: $resmon
### END INIT INFO
### END INIT INFO
# Source function library.
# Source function library.
.
/etc/init.d/functions
.
/etc/init.d/functions
RESMON_DIR
=
/opt/resmon
2
RESMON_DIR
=
/opt/resmon
RESMON_CONF
=
$RESMON_DIR
/resmon.conf
RESMON_CONF
=
$RESMON_DIR
/resmon.conf
RESMON_BIN
=
$RESMON_DIR
/resmon
RESMON_BIN
=
$RESMON_DIR
/resmon
RESMON_LOCK
=
/var/lock/subsys/resmon
2
RESMON_LOCK
=
/var/lock/subsys/resmon
[
-f
$RESMON_BIN
]
||
exit
0
[
-f
$RESMON_BIN
]
||
exit
0
[
-f
$RESMON_CONF
]
||
exit
0
[
-f
$RESMON_CONF
]
||
exit
0
...
@@ -26,7 +26,7 @@ RETVAL=0
...
@@ -26,7 +26,7 @@ RETVAL=0
umask
077
umask
077
start
()
{
start
()
{
echo
-n
$"Starting resmon
2
: "
echo
-n
$"Starting resmon: "
daemon
$RESMON_BIN
daemon
$RESMON_BIN
RETVAL
=
$?
RETVAL
=
$?
echo
echo
...
@@ -34,7 +34,7 @@ start() {
...
@@ -34,7 +34,7 @@ start() {
return
$RETVAL
return
$RETVAL
}
}
stop
()
{
stop
()
{
echo
-n
$"Shutting down resmon
2
: "
echo
-n
$"Shutting down resmon: "
killproc
$RESMON_BIN
killproc
$RESMON_BIN
echo
echo
RETVAL
=
$?
RETVAL
=
$?
...
@@ -42,14 +42,14 @@ stop() {
...
@@ -42,14 +42,14 @@ stop() {
return
$RETVAL
return
$RETVAL
}
}
rhstatus
()
{
rhstatus
()
{
status resmon
2
status resmon
}
}
restart
()
{
restart
()
{
stop
stop
start
start
}
}
reload
()
{
reload
()
{
echo
-n
$"Reloading resmon
2
: "
echo
-n
$"Reloading resmon: "
killproc
$RESMON_BIN
-HUP
killproc
$RESMON_BIN
-HUP
echo
echo
return
$?
return
$?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment