Browse Source

Use new zfs paths and add deps

master
Alex 2 years ago
parent
commit
12081a5fc0
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
  1. 2
      templates/influxdb.service.j2
  2. 2
      templates/postgresql@.service.j2
  3. 4
      templates/redis-server.service.j2

2
templates/influxdb.service.j2

@ -8,7 +8,7 @@ RestartSec=10
# TODO: Add mounts
TemporaryFileSystem=/:ro
BindReadOnlyPaths=/etc/influxdb /usr /lib /lib64
BindPaths={{ influxdb.storage }}
BindPaths={{ influxdb.data.path }}
ProtectSystem=strict
PrivateUsers=true

2
templates/postgresql@.service.j2

@ -0,0 +1,2 @@
[Unit]
After=zfs.target

4
templates/redis-server.service.j2

@ -0,0 +1,4 @@
[Unit]
After=zfs.target
[Service]
ReadWritePaths=-/dbs/redis