Use new zfs paths and add deps
This commit is contained in:
parent
618fca21d0
commit
12081a5fc0
@ -8,7 +8,7 @@ RestartSec=10
|
|||||||
# TODO: Add mounts
|
# TODO: Add mounts
|
||||||
TemporaryFileSystem=/:ro
|
TemporaryFileSystem=/:ro
|
||||||
BindReadOnlyPaths=/etc/influxdb /usr /lib /lib64
|
BindReadOnlyPaths=/etc/influxdb /usr /lib /lib64
|
||||||
BindPaths={{ influxdb.storage }}
|
BindPaths={{ influxdb.data.path }}
|
||||||
|
|
||||||
ProtectSystem=strict
|
ProtectSystem=strict
|
||||||
PrivateUsers=true
|
PrivateUsers=true
|
||||||
|
2
templates/postgresql@.service.j2
Normal file
2
templates/postgresql@.service.j2
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Unit]
|
||||||
|
After=zfs.target
|
4
templates/redis-server.service.j2
Normal file
4
templates/redis-server.service.j2
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[Unit]
|
||||||
|
After=zfs.target
|
||||||
|
[Service]
|
||||||
|
ReadWritePaths=-/dbs/redis
|
Reference in New Issue
Block a user