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
9bd090f6
Commit
9bd090f6
authored
12 years ago
by
Keith Fiske
Browse files
Options
Downloads
Patches
Plain Diff
Fix redhat init script to just use resmon instead of resmon2
parent
bf8bc6d4
No related branches found
Branches containing commit
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 @
9bd090f6
#!/bin/bash
#
# resmon
2
Starts resmon
2
.
# resmon Starts resmon.
#
#
# chkconfig: 2345 99 01
# description: resmon is a systems monitoring facility to aid nagios \
# checks. it should always be running when the system is in operation.
### BEGIN INIT INFO
# Provides: $resmon
2
# Provides: $resmon
### END INIT INFO
# Source function library.
.
/etc/init.d/functions
RESMON_DIR
=
/opt/resmon
2
RESMON_DIR
=
/opt/resmon
RESMON_CONF
=
$RESMON_DIR
/resmon.conf
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_CONF
]
||
exit
0
...
...
@@ -26,7 +26,7 @@ RETVAL=0
umask
077
start
()
{
echo
-n
$"Starting resmon
2
: "
echo
-n
$"Starting resmon: "
daemon
$RESMON_BIN
RETVAL
=
$?
echo
...
...
@@ -34,7 +34,7 @@ start() {
return
$RETVAL
}
stop
()
{
echo
-n
$"Shutting down resmon
2
: "
echo
-n
$"Shutting down resmon: "
killproc
$RESMON_BIN
echo
RETVAL
=
$?
...
...
@@ -42,14 +42,14 @@ stop() {
return
$RETVAL
}
rhstatus
()
{
status resmon
2
status resmon
}
restart
()
{
stop
start
}
reload
()
{
echo
-n
$"Reloading resmon
2
: "
echo
-n
$"Reloading resmon: "
killproc
$RESMON_BIN
-HUP
echo
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