mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
de99ce139c
* 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
54 lines
1.6 KiB
Desktop File
54 lines
1.6 KiB
Desktop File
[Unit]
|
|
Description=Grafana instance
|
|
Documentation=http://docs.grafana.org
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
After=postgresql.service mariadb.service mysql.service
|
|
|
|
[Service]
|
|
EnvironmentFile=/etc/default/grafana-server
|
|
User=grafana
|
|
Group=grafana
|
|
Type=simple
|
|
Restart=on-failure
|
|
WorkingDirectory=/usr/share/grafana
|
|
RuntimeDirectory=grafana
|
|
RuntimeDirectoryMode=0750
|
|
ExecStart=/usr/share/grafana/bin/grafana server \
|
|
--config=${CONF_FILE} \
|
|
--pidfile=${PID_FILE_DIR}/grafana-server.pid \
|
|
--packaging=deb \
|
|
cfg:default.paths.logs=${LOG_DIR} \
|
|
cfg:default.paths.data=${DATA_DIR} \
|
|
cfg:default.paths.plugins=${PLUGINS_DIR} \
|
|
cfg:default.paths.provisioning=${PROVISIONING_CFG_DIR}
|
|
|
|
LimitNOFILE=10000
|
|
TimeoutStopSec=20
|
|
CapabilityBoundingSet=
|
|
DeviceAllow=
|
|
LockPersonality=true
|
|
MemoryDenyWriteExecute=false
|
|
NoNewPrivileges=true
|
|
PrivateDevices=true
|
|
PrivateTmp=true
|
|
ProtectClock=true
|
|
ProtectControlGroups=true
|
|
ProtectHome=true
|
|
ProtectHostname=true
|
|
ProtectKernelLogs=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelTunables=true
|
|
ProtectProc=invisible
|
|
ProtectSystem=full
|
|
RemoveIPC=true
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
|
RestrictNamespaces=true
|
|
RestrictRealtime=true
|
|
RestrictSUIDSGID=true
|
|
SystemCallArchitectures=native
|
|
UMask=0027
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|