Use newlines in install lines for readability

This commit is contained in:
Thomas Roehl 2022-07-28 16:24:21 +02:00
parent c312093d2b
commit c7d692e27f

View File

@ -7,7 +7,10 @@ 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 --mode 644 --owner $CC_USER --group $CC_GROUP 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 +19,10 @@ $ 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 --mode 755 --owner $CC_USER --group $CC_GROUP 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 +30,10 @@ $ install --mode 755 --owner $CC_USER --group $CC_GROUP scripts/cc-metric-collec
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 --mode 644 --owner $CC_USER --group $CC_GROUP 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
```