Skip to content

Commit

Permalink
Update netdata-app.service to create separate directories for config,…
Browse files Browse the repository at this point in the history
… lib, and cache
  • Loading branch information
stephdl committed Mar 9, 2024
1 parent 4557cd3 commit 3c0cfee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions imageroot/systemd/user/netdata-app.service
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ EnvironmentFile=-%S/state/smarthost.env
WorkingDirectory=%S/state
Restart=always
TimeoutStopSec=70
ExecStartPre=/bin/mkdir -p netdata/{config,lib,cache}
ExecStartPre=/bin/mkdir -p netdata/config
ExecStartPre=/bin/mkdir -p netdata/lib
ExecStartPre=/bin/mkdir -p netdata/cache
ExecStartPre=/bin/rm -f %t/netdata-app.pid %t/netdata-app.ctr-id
ExecStartPre=-runagent discover-smarthost
ExecStart=/usr/bin/podman run --conmon-pidfile %t/netdata-app.pid \
--cidfile %t/netdata-app.ctr-id --cgroups=no-conmon \
--pod-id-file %t/netdata.pod-id --replace -d --name netdata-app \
--hostname=$(hostname -f) \
--hostname=${HOSTNAME} \
--volume ./netdata/config:/etc/netdata:Z \
--volume ./netdata/lib:/var/lib/netdata:Z \
--volume ./netdata/cache:/var/cache/netdata:Z \
Expand Down

0 comments on commit 3c0cfee

Please sign in to comment.