mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-22 14:53:30 +00:00
Changed default and fallback host_dir
Have to change them since we are trying to resolve system services and the system services are in the /var/lib/faasd/hosts file instead of /var/lib/faasd-provider/hosts file. Signed-off-by: Shikachuu <zcmate@gmail.com>
This commit is contained in:
@ -5,7 +5,7 @@ Description=faasd-provider
|
|||||||
MemoryLimit=500M
|
MemoryLimit=500M
|
||||||
Environment="secret_mount_path={{.SecretMountPath}}"
|
Environment="secret_mount_path={{.SecretMountPath}}"
|
||||||
Environment="basic_auth=true"
|
Environment="basic_auth=true"
|
||||||
Environment="hosts_dir=/var/lib/faasd-provider"
|
Environment="hosts_dir=/var/lib/faasd"
|
||||||
ExecStart=/usr/local/bin/faasd provider
|
ExecStart=/usr/local/bin/faasd provider
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=10s
|
RestartSec=10s
|
||||||
|
@ -249,7 +249,7 @@ func prepareEnv(envProcess string, reqEnvVars map[string]string) []string {
|
|||||||
func getMounts() []specs.Mount {
|
func getMounts() []specs.Mount {
|
||||||
wd, _ := os.LookupEnv("hosts_dir")
|
wd, _ := os.LookupEnv("hosts_dir")
|
||||||
if len(wd) == 0 {
|
if len(wd) == 0 {
|
||||||
wd = "/var/lib/faasd-provider"
|
wd = "/var/lib/faasd"
|
||||||
}
|
}
|
||||||
|
|
||||||
mounts := []specs.Mount{}
|
mounts := []specs.Mount{}
|
||||||
|
Reference in New Issue
Block a user