Skip to content

Commit

Permalink
Be smarter about restarting daemons with PostgreSQL. #1373
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Dec 8, 2023
1 parent a2bb414 commit bc4af71
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[Unit]
Description=pScheduler server - __PROG__

# This forces starting and stopping in concert
PartOf=__PGSERVICE__

[Service]
Type=exec
Expand All @@ -11,8 +12,6 @@ LimitNOFILE=32768
LimitNPROC=32768

Restart=always
RestartSec=3


# Create the run directory
ExecStartPre=-/bin/mkdir -p __RUNDIR__/__PROG__
Expand Down

2 comments on commit bc4af71

@igarny
Copy link
Collaborator

@igarny igarny commented on bc4af71 Feb 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to suggest "Requires" and not "PartOf" https://pychao.com/2021/02/24/difference-between-partof-and-bindsto-in-a-systemd-unit/ Test2

@mfeit-internet2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the use of PartOf is deficient?

Please sign in to comment.