From bc4af7103a144068b54173ac98753c0dc05517b3 Mon Sep 17 00:00:00 2001 From: Mark Feit Date: Fri, 8 Dec 2023 18:56:51 +0000 Subject: [PATCH] Be smarter about restarting daemons with PostgreSQL. #1373 --- .../pscheduler-server/daemons/service-template.raw | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pscheduler-server/pscheduler-server/daemons/service-template.raw b/pscheduler-server/pscheduler-server/daemons/service-template.raw index 6d463879c..8b8a9daf4 100644 --- a/pscheduler-server/pscheduler-server/daemons/service-template.raw +++ b/pscheduler-server/pscheduler-server/daemons/service-template.raw @@ -1,6 +1,7 @@ [Unit] Description=pScheduler server - __PROG__ - +# This forces starting and stopping in concert +PartOf=__PGSERVICE__ [Service] Type=exec @@ -11,8 +12,6 @@ LimitNOFILE=32768 LimitNPROC=32768 Restart=always -RestartSec=3 - # Create the run directory ExecStartPre=-/bin/mkdir -p __RUNDIR__/__PROG__