... | ... | @@ -35,10 +35,17 @@ We need to inform the system systemd that the `guardctrl` user is "persistent", |
|
|
```shell
|
|
|
# loginctl enable-linger guardian
|
|
|
```
|
|
|
In addition, you'll need to extend the startup timeout for this user, since starting all the guardian processes at boot takes awhile. 10 minutes should be enough, but this can be adjusted. We handle this with a "drop-in" for the guardctrl user service:
|
|
|
```
|
|
|
# mkdir /etc/systemd/system/user\@1010.service.d
|
|
|
# cat > /etc/systemd/system/user\@1010.service.d/timeout.conf
|
|
|
[Service]
|
|
|
TimeoutStartSec=10min
|
|
|
```
|
|
|
|
|
|
Because we want caRepeater to be running system-wide before starting any of the guardian nodes, we declare a dependency of the guardian user of the caRepeater service. This is done by dropping the following conf file into the `user@1010.service.d` directory
|
|
|
Because we want caRepeater to be running system-wide before starting any of the guardian nodes, we declare a dependency of the guardian user of the caRepeater service. This is also done with a drop-in:
|
|
|
```
|
|
|
$ cat /etc/systemd/system/user\@1010.service.d/ca.conf
|
|
|
# cat > /etc/systemd/system/user\@1010.service.d/ca.conf
|
|
|
[Unit]
|
|
|
Wants=caRepeater.service
|
|
|
After=caRepeater.service
|
... | ... | |