Logo
Explore Help
Sign In
docker/pgcat
1
0
Fork 0
You've already forked pgcat
mirror of https://github.com/postgresml/pgcat.git synced 2026-03-22 17:06:29 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
main
pgcat/postinst

14 lines
196 B
Plaintext
Raw Permalink Normal View History

Add systemd service (#540)
2023-08-08 11:51:38 -07:00
#!/bin/bash
Add pgcat user (#546) * Add pgcat user * warn * dev
2023-08-10 12:25:43 -07:00
set -e
Add systemd service (#540)
2023-08-08 11:51:38 -07:00
systemctl daemon-reload
systemctl enable pgcat
Add pgcat user (#546) * Add pgcat user * warn * dev
2023-08-10 12:25:43 -07:00
if ! id pgcat 2> /dev/null; then
useradd -s /usr/bin/false pgcat
fi
Automatically start systemd service if config file is present (#800) Previously, upgrading the deb package stopped the service but didn't reenable it after a successful upgrade. This made upgrading the package more difficult and required a second step to restart the service. With this commit, the systemd service is automatically started when the default config file is present.
2024-09-06 16:07:01 +02:00
if [ -f /etc/pgcat.toml ]; then
systemctl start pgcat
fi
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 40ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API