Skip to content

Commit 52319bf

Browse files
committed
feat(systemd): add systemd service
1 parent 60f6868 commit 52319bf

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

systemd/external-postgres.service

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[Unit]
2+
Description="WaffleHacks external-postgres operator"
3+
Requires=network-online.target
4+
StartLimitIntervalSec=60
5+
StartLimitBurst=3
6+
7+
[Service]
8+
Type=simple
9+
User=postgres
10+
Group=postgres
11+
EnvironmentFile=-/etc/external-postgres/.env
12+
ExecStart=/usr/local/bin/external-postgres
13+
ProtectSystem=full
14+
ProtectHome=read-only
15+
PrivateTmp=yes
16+
PrivateDevices=yes
17+
Restart=on-failure
18+
RestartSec=5
19+
20+
[Install]
21+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)