Dan Cech
de99ce139c
Server: Switch from separate server & cli to a unified grafana binary ( #58286 )
...
* avoid the need for a second bulky binary for grafana-cli
* look for grafana-server in $PATH as well as same directory
* implement unified "grafana" command
* update dockerfiles, fix grafana-cli -v
* update packaging to work with single binary
- add wrapper scripts for grafana and grafana-server
- update and sync package files
- implement --sign flag of build package command
- stop packaging scripts folder, they are not useful for end users
- add support for --configOverrides in server command
- remove unused nfpm.yaml config file
* windows support
2022-11-22 11:53:43 -05:00
Jean-Philippe Quéméner
2fef8e6f2c
Alerting: add docs for file provisioning ( #53101 )
2022-08-17 18:53:36 +02:00
Jean-Philippe Quéméner
8c5f5e7a32
Alerting: create provisioning dir in docker image ( #53594 )
2022-08-12 00:16:02 +02:00
Kevin Minehart
ca4b35e596
Packaging: remove private users setting in systemd unit files ( #40815 )
...
* Remove privateusers=true from grafana-server.service
2021-10-22 16:19:55 +02:00
Kevin Minehart
fe5e49476b
Packaging: Remove ProcSubset option in systemd ( #40339 )
...
* update rpm service file
* Update grafana-server.service
2021-10-12 11:18:49 -05:00
Kevin Minehart
cdea812cee
remove systemcallfilters sections from systemd unit files ( #40176 )
2021-10-08 15:50:59 +02:00
MichaIng
68c7d054bf
Update PID file location form /var/run to /run ( #35739 )
...
Signed-off-by: MichaIng <micha@dietpi.com>
2021-09-03 10:50:13 -05:00
erdnaxe
5f521bd9ae
packaging: systemd unit hardening ( #38109 )
2021-09-02 07:36:35 -05:00
Gabriel MABILLE
d56a653e73
AccessControl: Add provisioning folder to the packaging process ( #34398 )
...
* AccessControl: Add provisioning folder to the packaging process
2021-05-20 09:41:39 +02:00
Marcus Efraimsson
cc95754e0d
Provisioning: Adds support for enabling app plugins ( #25649 )
...
Adds support for enabling app plugins using provisioning.
Ref #11409
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-06-22 17:49:13 +02:00
bergquist
5dc864b47f
fixes invalid folder check
...
-f check if a file exists. -d checks if the dir exists
2019-02-11 11:36:34 +01:00
bergquist
7ce18ec4f7
extract notifiers folder creation to new if statement
2019-02-11 11:30:41 +01:00
Marcus Efraimsson
9c18aa8684
make sure to create provisioning/notifiers directory for deb and rpm packages
2019-02-07 16:10:39 +01:00
Leonard Gram
2e8c4699b0
build: internal metrics for packaging.
2018-11-15 14:42:09 +01:00
bergquist
2e610cb256
dashboards as cfg: move dash/ds config files to /provisioning/*
2017-12-07 15:27:01 +01:00
bergquist
50bc801f1c
dashboards as cfg: copy dash/ds files if missing
2017-12-07 15:27:01 +01:00
bergquist
361acd3fa1
dashboards as cfg: include cfg files in dist packages
2017-12-07 15:27:01 +01:00
Jason O'Donnell
b51476f18a
Fix typo in init.d script
2017-10-20 13:31:52 -04:00
Torkel Ödegaard
5d3c3a6889
packaging: changed how pid directory is created for systemd systems, #9133
2017-09-04 16:41:07 +02:00
Torkel Ödegaard
c3cffeb10c
packaging: fixed issue with pid file on systemd systems, fixes #9133
2017-09-04 10:43:04 +02:00
Kevin Conaway
5dad324ab7
#8144 Only require root to start/stop grafana ( #8145 )
2017-04-18 13:49:04 +02:00
Tobias Wolf
68e6700663
Add an After= DB ordering relation to systemd .service ( #7903 )
...
In systemd `After=` merely codes an ordering relation and does not start
other units.
Grafana needs to specify that it wants to start up _after_ either of the
supported DB services have started, _if they start_.
Enabling the database services, however, is out of scope for Grafana.
2017-03-22 16:49:35 +01:00
Torkel Ödegaard
f602752bdc
fix(packaging): fixed issue in deb package post install script that made it think upgrade was happening, fixes #7403
2017-01-31 10:56:04 +01:00
Torkel Ödegaard
b191638f41
feat(packaging): Make config file not part of package to simplify upgrade, made commit always a short sha, changed RESTART_ON_UPGRADE to true by default, #7399 , #7227
2017-01-30 08:08:37 +01:00
Christopher Meng
6afb456bef
Update systemd unit's description to be more understandable
...
Signed-off-by: Christopher Meng <i@cicku.me>
2016-09-06 16:29:15 +02:00
Ben Oswald
51878aeca8
change start to restart also for systemctl
...
I've forgotten to update the systemctl start to restart in my first commit
2016-06-05 16:27:57 +02:00
Ben Oswald
1d2eb0f903
restart grafana after upgrade
...
The current script only tries to start the already running grafana process after an upgrade. This leads to errors due to changed js and css hashes while grafana is delivering the old ones. To load the new sources we need to restart grafana after an upgrade.
2016-06-05 16:19:53 +02:00
Torkel Ödegaard
99db89067e
fix(): reverted RESTART_ON_UPGRADE change
2016-05-17 08:34:34 +02:00
Torkel Ödegaard
731c35540f
packaging(): default RESTART_ON_UPGRADE to true, closes #4993
2016-05-12 07:29:33 +02:00
Torkel Ödegaard
cdd341af64
feat(packaging): added Restart=on-failure to systemd service spec file
2016-01-13 13:57:22 +01:00
Torkel Ödegaard
f83d5f4280
cleanup(influxdb_08): removed influxdb 0.8 data source as an built in official data source, moved it to an external plugin repo, https://github.com/grafana/datasource-plugin-influxdb-08 , closes #3523
2015-12-15 11:21:00 +01:00
Mathieu Parent
4ec6691ea9
Fix LimitNOFILE in Debian systemd unit
2015-10-23 15:12:52 +02:00
Denis Doria
9e21a089d2
Fixing permission issues for new installations
...
The umask as 0027 will generates permissions like:
0640 - for files
0750 - for directories
This should solve the grafana.db being accesable by any user for new installations.
2015-08-16 18:43:27 +02:00
Torkel Ödegaard
5302d3bb31
Added pidfile arg to systemd service spec, fixes #2360
2015-08-04 15:44:07 +02:00
Torkel Ödegaard
8daec7bde2
fix(packaging): fixed issue with restart on upgrade in debian package, Fixes #2320
2015-07-15 14:57:52 +02:00
David Gillies
a958965e64
set mode 0640 and group grafana on /etc/grafana/grafana.ini
2015-07-08 22:13:38 +10:00
Haneysmith, Nathan
fcba62894b
remove trailing exit 0 from deb init
2015-06-04 11:40:49 -07:00
Haneysmith, Nathan
77215182f7
fixing up init script exit codes
2015-06-04 11:01:04 -07:00
Torkel Ödegaard
90a77bdf85
Fixed failure loop in init.d script when grafana will not start (due to permission issue or other), Fixes #1837
2015-04-22 08:47:53 +02:00
Torkel Ödegaard
a4ef1e22d6
Updated docs
2015-04-13 07:55:07 +02:00
Torkel Ödegaard
bdc4d14036
Updated postinstall scripts
2015-04-12 16:19:44 +02:00
Torkel Ödegaard
ed82f6c681
Added upgrade step that moves sqlite3 database to new location, #1758
2015-04-12 15:58:08 +02:00
Torkel Ödegaard
8accb8865a
restart on upgrade default to false
2015-04-10 17:36:25 +02:00
Torkel Ödegaard
d32c03ed11
Rpm working again, systemd working on centos 7
2015-04-10 16:20:01 +02:00
Torkel Ödegaard
3e49609099
started work on new rpm package
2015-04-10 11:35:14 +02:00
Torkel Ödegaard
c47f4bc97c
systemd service is working on debian jessie
2015-04-10 11:26:03 +02:00
Torkel Ödegaard
2020fedfdb
Fixed issue with overriding default config values via command line
2015-04-10 10:58:32 +02:00
Torkel Ödegaard
4c6d7630cd
more work on refining config loading, and packaging
2015-04-09 17:18:04 +02:00
Torkel Ödegaard
a991cda233
Began work on refactoring reading config values
2015-04-08 20:31:42 +02:00
Torkel Ödegaard
9c2040aa9b
More deb & rpm work, systemd testing
2015-04-08 16:58:05 +02:00