diff options
author | John Estabrook <jestabro@sentrium.io> | 2019-07-01 13:44:34 -0500 |
---|---|---|
committer | John Estabrook <jestabro@sentrium.io> | 2019-07-01 13:44:34 -0500 |
commit | 2abd3cf50c6fedf79ce0f01337ef8bb1eb44116e (patch) | |
tree | 69339881da21e517e58fd5cc0aaf93e14b6ffd84 /src/systemd/vyos-http-api.service | |
parent | 1ebee07dfc72426f12e2dddbd3698b8796a158e9 (diff) | |
download | vyos-1x-2abd3cf50c6fedf79ce0f01337ef8bb1eb44116e.tar.gz vyos-1x-2abd3cf50c6fedf79ce0f01337ef8bb1eb44116e.zip |
[HTTP API] T1431: check init/vyos-config before starting HTTP API service
Diffstat (limited to 'src/systemd/vyos-http-api.service')
-rw-r--r-- | src/systemd/vyos-http-api.service | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/systemd/vyos-http-api.service b/src/systemd/vyos-http-api.service index 509af4816..4fa68b4ff 100644 --- a/src/systemd/vyos-http-api.service +++ b/src/systemd/vyos-http-api.service @@ -1,9 +1,12 @@ [Unit] Description=VyOS HTTP API service -After=auditd.service systemd-user-sessions.service time-sync.target +After=auditd.service systemd-user-sessions.service time-sync.target vyos-router.service +Requires=vyos-router.service [Service] +ExecStartPre=/usr/libexec/vyos/init/vyos-config ExecStart=/usr/bin/python3 -u /usr/libexec/vyos/services/vyos-http-api-server +Type=idle KillMode=process SyslogIdentifier=vyos-http-api @@ -16,5 +19,6 @@ User=root Group=vyattacfg [Install] -WantedBy=multi-user.target +# Installing in a earlier target leaves ExecStartPre waiting +WantedBy=getty.target |