fix socket
This commit is contained in:
parent
b7d4b8b182
commit
314cbd37c7
1 changed files with 2 additions and 1 deletions
|
|
@ -85,13 +85,14 @@ After=network.target
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=%s
|
WorkingDirectory=%s
|
||||||
EnvironmentFile=%s
|
EnvironmentFile=%s
|
||||||
|
ExecStartPre=/usr/bin/rm -f %s
|
||||||
ExecStart=%s
|
ExecStart=%s
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
`, p.Name, dataDir, envPath, binaryPath)
|
`, p.Name, dataDir, envPath, socketPath, binaryPath)
|
||||||
|
|
||||||
homeDir, err := homeForUnixUser(p.UnixUser)
|
homeDir, err := homeForUnixUser(p.UnixUser)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue