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
5d3c3a68
Commit
5d3c3a68
authored
Sep 04, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packaging: changed how pid directory is created for systemd systems, #9133
parent
4eabf6ce
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
18 deletions
+4
-18
packaging/deb/control/postinst
+0
-6
packaging/deb/systemd/grafana-server.service
+2
-0
packaging/rpm/control/postinst
+0
-12
packaging/rpm/systemd/grafana-server.service
+2
-0
No files found.
packaging/deb/control/postinst
View file @
5d3c3a68
...
...
@@ -42,12 +42,6 @@ case "$1" in
IS_UPGRADE
=
true
fi
# make sure there is a /var/run/grafana dir on systemd systems
if
[
-x
/bin/systemctl
]
;
then
mkdir
-p
$PID_FILE_DIR
chown
-R
$GRAFANA_USER
:
$GRAFANA_GROUP
$PID_FILE_DIR
fi
if
[
"x
$IS_UPGRADE
"
!=
"xtrue"
]
;
then
if
command
-v
systemctl
>
/dev/null
;
then
echo
"### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd"
...
...
packaging/deb/systemd/grafana-server.service
View file @
5d3c3a68
...
...
@@ -12,6 +12,8 @@ Group=grafana
Type=simple
Restart=on-failure
WorkingDirectory=/usr/share/grafana
RuntimeDirectory=grafana
RuntimeDirectoryMode=0750
ExecStart=/usr/sbin/grafana-server \
--config=${CONF_FILE} \
--pidfile=${PID_FILE_DIR}/grafana-server.pid \
...
...
packaging/rpm/control/postinst
View file @
5d3c3a68
...
...
@@ -56,12 +56,6 @@ if [ $1 -eq 1 ] ; then
find /etc/grafana
-type
f
-exec
chmod 640
{}
';'
find /etc/grafana
-type
d
-exec
chmod 755
{}
';'
# make sure there is a /var/run/grafana dir on systemd systems
if
[
-x
/bin/systemctl
]
;
then
mkdir
-p
$PID_FILE_DIR
chown
-R
$GRAFANA_USER
:
$GRAFANA_GROUP
$PID_FILE_DIR
fi
if
[
-x
/bin/systemctl
]
;
then
echo
"### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd"
echo
" sudo /bin/systemctl daemon-reload"
...
...
@@ -75,12 +69,6 @@ if [ $1 -eq 1 ] ; then
echo
" sudo service grafana-server start"
fi
elif
[
$1
-ge
2
]
;
then
# make sure there is a /var/run/grafana dir on systemd systems
if
[
-x
/bin/systemctl
]
;
then
mkdir
-p
$PID_FILE_DIR
chown
-R
$GRAFANA_USER
:
$GRAFANA_GROUP
$PID_FILE_DIR
fi
if
[
"
$RESTART_ON_UPGRADE
"
==
"true"
]
;
then
stopGrafana
startGrafana
...
...
packaging/rpm/systemd/grafana-server.service
View file @
5d3c3a68
...
...
@@ -12,6 +12,8 @@ Group=grafana
Type=simple
Restart=on-failure
WorkingDirectory=/usr/share/grafana
RuntimeDirectory=grafana
RuntimeDirectoryMode=0750
ExecStart=/usr/sbin/grafana-server \
--config=${CONF_FILE} \
--pidfile=${PID_FILE_DIR}/grafana-server.pid \
...
...
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