diff options
| author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-04-17 15:40:02 +0200 |
|---|---|---|
| committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-04-17 15:48:39 +0200 |
| commit | ffb593f88093760bc0a1d7c925661aad1a5955bc (patch) | |
| tree | 185b18171e5bfe15f7574b8f7afe0883269bb434 /pkgs/development/python-modules/httpserver | |
| parent | e572b5c10444b7bb5339260359349e1069df486d (diff) | |
nixos/graphite-service: fix startup issue
The preStart snippets (graphite, carbon) try to create directories under
/var/db/. That currently fails because the code is run as user
"graphite". Fix by setting "PermissionsStartOnly = true" so that the
preStart stuff is run as 'root'.
Further:
* graphite-web-0.9.12/bin/build-index.sh needs perl, so add it to PATH.
* Now that preStart runs as root, we must wait with "chown graphite"
until we're done creating files/directories.
* Drop needless check for root (uid 0) before running chown.
Diffstat (limited to 'pkgs/development/python-modules/httpserver')
0 files changed, 0 insertions, 0 deletions
