mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 15:09:05 +01:00
Add --owner and --group to install lines
This commit is contained in:
parent
7438b9d245
commit
c312093d2b
@ -7,7 +7,7 @@ In most cases, a simple `make` in the main folder is enough to get a `cc-metric-
|
||||
The main configuration settings for system integration are pre-defined in `scripts/cc-metric-collector.config`. The file contains the UNIX user and group used for execution, the PID file location and other settings. Adjust it accordingly and copy it to `/etc/default/cc-metric-collector`
|
||||
|
||||
```
|
||||
$ install -m 644 scripts/cc-metric-collector.config /etc/default/cc-metric-collector
|
||||
$ install --mode 644 --owner $CC_USER --group $CC_GROUP scripts/cc-metric-collector.config /etc/default/cc-metric-collector
|
||||
$ edit /etc/default/cc-metric-collector
|
||||
```
|
||||
|
||||
@ -16,7 +16,7 @@ $ edit /etc/default/cc-metric-collector
|
||||
If you are using a init system based in `/etc/init.d` daemons, you can use the sample `scripts/cc-metric-collector.init`. It reads the basic configuration from `/etc/default/cc-metric-collector`
|
||||
|
||||
```
|
||||
$ install -m 755 scripts/cc-metric-collector.init /etc/init.d/cc-metric-collector
|
||||
$ install --mode 755 --owner $CC_USER --group $CC_GROUP scripts/cc-metric-collector.init /etc/init.d/cc-metric-collector
|
||||
```
|
||||
|
||||
### Systemd
|
||||
@ -24,7 +24,7 @@ $ install -m 755 scripts/cc-metric-collector.init /etc/init.d/cc-metric-collecto
|
||||
If you are using `systemd` as init system, you can use the sample systemd service file `scripts/cc-metric-collector.service`, the configuration file `scripts/cc-metric-collector.config`.
|
||||
|
||||
```
|
||||
$ install -m 644 scripts/cc-metric-collector.service /etc/systemd/system/cc-metric-collector.service
|
||||
$ install --mode 644 --owner $CC_USER --group $CC_GROUP scripts/cc-metric-collector.service /etc/systemd/system/cc-metric-collector.service
|
||||
$ systemctl enable cc-metric-collector
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user