Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
817f24e6
Commit
817f24e6
authored
Jul 11, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/development'
parents
9055beff
eafb0f32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
packaging/rpm/init.d/grafana-server
+6
-9
No files found.
packaging/rpm/init.d/grafana-server
View file @
817f24e6
...
...
@@ -72,8 +72,6 @@ function isRunning() {
case
"
$1
"
in
start
)
echo
-n
$"Starting
$DESC
: .... "
isRunning
if
[
$?
-eq
0
]
;
then
echo
"Already running."
...
...
@@ -90,7 +88,7 @@ case "$1" in
# Start Daemon
cd
$GRAFANA_HOME
su
-s
/bin/sh
-c
"nohup
${
DAEMON
}
${
DAEMON_OPTS
}
>> /dev/null 3>&1 &"
$GRAFANA_USER
2> /dev/null
action
$"Starting
$DESC
: ..."
su
-s
/bin/sh
-c
"nohup
${
DAEMON
}
${
DAEMON_OPTS
}
>> /dev/null 3>&1 &"
$GRAFANA_USER
2> /dev/null
return
=
$?
if
[
$return
-eq
0
]
then
...
...
@@ -114,26 +112,25 @@ case "$1" in
done
fi
echo
"OK"
exit
$return
;;
stop
)
echo
-n
"Stopping
$DESC
..."
echo
-n
"Stopping
$DESC
:
..."
if
[
-f
"
$PID_FILE
"
]
;
then
killproc
-p
$PID_FILE
-d
20
$NAME
if
[
$?
-eq
1
]
;
then
echo
-n
"
$DESC
is not running but pid file exists, cleaning up"
echo
"
$DESC
is not running but pid file exists, cleaning up"
elif
[
$?
-eq
3
]
;
then
PID
=
"
`
cat
$PID_FILE
`
"
echo
-n
"Failed to stop
$DESC
(pid
$PID
)"
echo
"Failed to stop
$DESC
(pid
$PID
)"
exit
1
fi
rm
-f
"
$PID_FILE
"
echo
"OK
"
echo
"
"
exit
0
else
echo
-n
"(not running)"
echo
"(not running)"
fi
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