-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Must use full path to executable in service file.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
pscheduler-server/pscheduler-server/unibuild-packaging/deb/patches/services
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__ |