generated from NethServer/ns8-kickstart
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Timescale database is used to store report data
- Loading branch information
1 parent
d681636
commit 5006806
Showing
4 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[Unit] | ||
Description=Podman timescale.service | ||
BindsTo=controller.service | ||
Before=api.service | ||
|
||
[Service] | ||
Environment=PODMAN_SYSTEMD_UNIT=%n | ||
EnvironmentFile=%S/state/environment | ||
EnvironmentFile=%S/state/sercret.env | ||
WorkingDirectory=%S/state | ||
Restart=always | ||
TimeoutStopSec=70 | ||
ExecStartPre=/bin/rm -f %t/timescale.pid %t/timescale.ctr-id | ||
ExecStartPre=/usr/bin/mkdir -vp %S/state/timescale.d | ||
ExecStart=/usr/bin/podman run \ | ||
--conmon-pidfile %t/timescale.pid \ | ||
--cidfile %t/timescale.ctr-id \ | ||
--cgroups=no-conmon \ | ||
--pod-id-file %t/controller.pod-id \ | ||
--replace -d --name timescale \ | ||
--volume=timescale-data:/var/lib/postgresql/data:z \ | ||
--env-file=%S/state/db.env \ | ||
--network=host \ | ||
${TIMESCALE_IMAGE} -p ${POSTGRES_PASSWORD} | ||
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/timescale.ctr-id -t 10 | ||
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/timescale.ctr-id | ||
PIDFile=%t/timescale.pid | ||
Type=forking | ||
|
||
[Install] | ||
WantedBy=default.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters