diff options
author | John Estabrook <jestabro@vyos.io> | 2024-10-24 10:50:34 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2024-12-10 14:01:22 -0600 |
commit | 184e24b7f0a2ead380703f98822b3fb2d35bef28 (patch) | |
tree | 8c66506db6479b9be306698cbd00cbd63998a6a0 | |
parent | bab186b493145ee42453196e8ef4670afc71f6f1 (diff) | |
download | vyos-1x-184e24b7f0a2ead380703f98822b3fb2d35bef28.tar.gz vyos-1x-184e24b7f0a2ead380703f98822b3fb2d35bef28.zip |
vyconf: T6718: start vyconfd from vyos-router
Start vyconfd after migration.
-rwxr-xr-x | src/init/vyos-router | 4 | ||||
-rw-r--r-- | src/systemd/vyconfd.service | 21 |
2 files changed, 25 insertions, 0 deletions
diff --git a/src/init/vyos-router b/src/init/vyos-router index 9325095c1..e2e964656 100755 --- a/src/init/vyos-router +++ b/src/init/vyos-router @@ -528,6 +528,8 @@ start () disabled system_config || system_config + systemctl start vyconfd.service + for s in ${subinit[@]} ; do if ! disabled $s; then log_progress_msg $s @@ -570,6 +572,8 @@ stop() umount ${vyatta_configdir} log_action_end_msg $? + systemctl stop vyconfd.service + systemctl stop frr.service unmount_encrypted_config diff --git a/src/systemd/vyconfd.service b/src/systemd/vyconfd.service new file mode 100644 index 000000000..b20e831ab --- /dev/null +++ b/src/systemd/vyconfd.service @@ -0,0 +1,21 @@ +[Unit] +Description=VyOS vyconf daemon + +# Without this option, lots of default dependencies are added, +# among them network.target, which creates a dependency cycle +DefaultDependencies=no + +After=systemd-remount-fs.service + +[Service] +ExecStart=/usr/libexec/vyos/vyconf/vyconfd +Type=exec +SyslogIdentifier=vyconfd +SyslogFacility=daemon +Restart=on-failure + +User=root +Group=vyattacfg + +[Install] +WantedBy=vyos.target |