Skip to content

Commit

Permalink
Change scheduler container data dir from /var/run/... to /var/lib. (
Browse files Browse the repository at this point in the history
#1429)

Signed-off-by: joshvanl <me@joshvanl.dev>
  • Loading branch information
JoshVanL authored Jul 18, 2024
1 parent 30d888f commit 16a513b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/standalone/standalone.go
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ func runSchedulerService(wg *sync.WaitGroup, errorChan chan<- error, info initIn
"--entrypoint", "./scheduler",
}
if info.schedulerVolume != nil {
args = append(args, "--volume", *info.schedulerVolume+":/var/run/dapr/scheduler")
args = append(args, "--volume", *info.schedulerVolume+":/var/lib/dapr/scheduler")
}

if info.dockerNetwork != "" {
Expand All @@ -664,7 +664,7 @@ func runSchedulerService(wg *sync.WaitGroup, errorChan chan<- error, info initIn
)
}

args = append(args, image, "--etcd-data-dir=/var/run/dapr/scheduler")
args = append(args, image, "--etcd-data-dir=/var/lib/dapr/scheduler")

_, err = utils.RunCmdAndWait(runtimeCmd, args...)
if err != nil {
Expand Down

0 comments on commit 16a513b

Please sign in to comment.