Skip to content

Commit

Permalink
Must use full path to executable in service file.
Browse files Browse the repository at this point in the history
  • Loading branch information
laeti-tia committed Feb 8, 2024
1 parent eb5fcb7 commit f353af1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Index: b/daemons/service-template.m4
===================================================================
--- a/daemons/service-template.m4 2024-02-07 18:23:00.910904000 +0100
+++ b/daemons/service-template.m4 2024-02-07 18:24:53.078426711 +0100
--- a/daemons/service-template.m4 2024-02-07 18:25:07.843041293 +0100
+++ b/daemons/service-template.m4 2024-02-08 15:48:59.586626617 +0100
@@ -45,7 +45,7 @@
# Wait for the database to become accessible. This is done because
# the PostgreSQL service can appear up when it isn't ready to take
# queries yet. That will cause this service to die.
-ExecStartPre=__DAEMONDIR__/wait-for-database --dsn @__DSN__ --dwell 120 --retry 5
+ExecStartPre=sudo -u pscheduler __DAEMONDIR__/wait-for-database --dsn @__DSN__ --dwell 120 --retry 5
+ExecStartPre=/usr/bin/sudo -u pscheduler __DAEMONDIR__/wait-for-database --dsn @__DSN__ --dwell 120 --retry 5

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

0 comments on commit f353af1

Please sign in to comment.