Skip to content

Commit

Permalink
add Group=netdata to systemd unit file (netdata#19638)
Browse files Browse the repository at this point in the history
* add Group=netdata to systemd unit file

* remove ExecStartPre

* rm mkdir /run/netdata
  • Loading branch information
ilyam8 authored Feb 13, 2025
1 parent 997f2a7 commit fa0b2dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions system/systemd/netdata.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ Wants=network-online.target nss-lookup.target
LogNamespace=netdata
Type=simple
User=root
Group=netdata
RuntimeDirectory=netdata
RuntimeDirectoryMode=0775
PIDFile=/run/netdata/netdata.pid
ExecStart=@sbindir_POST@/netdata -P /run/netdata/netdata.pid -D
ExecStartPre=/bin/mkdir -p @localstatedir_POST@/cache/netdata
ExecStartPre=/bin/chown -R @netdata_user_POST@ @localstatedir_POST@/cache/netdata
ExecStartPre=/bin/mkdir -p /run/netdata
ExecStartPre=/bin/chown -R @netdata_user_POST@ /run/netdata
PermissionsStartOnly=true

# saving a big db on slow disks may need some time
Expand Down
1 change: 1 addition & 0 deletions system/systemd/netdata.service.v235.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Wants=network-online.target nss-lookup.target
LogNamespace=netdata
Type=simple
User=root
Group=netdata
EnvironmentFile=-/etc/default/netdata
ExecStart=@sbindir_POST@/netdata -D $EXTRA_OPTS

Expand Down

0 comments on commit fa0b2dd

Please sign in to comment.