diff options
author | Christian Breunig <christian@breunig.cc> | 2023-07-09 20:45:15 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-07-09 20:45:15 +0200 |
commit | 00f95c93b6c3aca25d5f4ba0e29b4f8db954952c (patch) | |
tree | c2e617c251498dc30a3467c51b3ff7a9651283d1 /src/systemd | |
parent | 63256e1b57153762d1d5028fc0bbb8f373ce1433 (diff) | |
download | vyos-1x-00f95c93b6c3aca25d5f4ba0e29b4f8db954952c.tar.gz vyos-1x-00f95c93b6c3aca25d5f4ba0e29b4f8db954952c.zip |
T3355: import startup scripts from vyatta-cfg repo for vyos-router
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/vyos-router.service | 19 | ||||
-rw-r--r-- | src/systemd/vyos.target | 3 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/systemd/vyos-router.service b/src/systemd/vyos-router.service new file mode 100644 index 000000000..6f683cebb --- /dev/null +++ b/src/systemd/vyos-router.service @@ -0,0 +1,19 @@ +[Unit] +Description=VyOS Router +After=systemd-journald-dev-log.socket time-sync.target local-fs.target cloud-config.service +Requires=frr.service +Conflicts=shutdown.target +Before=systemd-user-sessions.service + +[Service] +Type=simple +Restart=no +TimeoutSec=20min +KillMode=process +RemainAfterExit=yes +ExecStart=/usr/libexec/vyos/init/vyos-router start +ExecStop=/usr/libexec/vyos/init/vyos-router stop +StandardOutput=journal+console + +[Install] +WantedBy=vyos.target diff --git a/src/systemd/vyos.target b/src/systemd/vyos.target new file mode 100644 index 000000000..47c91c1cc --- /dev/null +++ b/src/systemd/vyos.target @@ -0,0 +1,3 @@ +[Unit] +Description=VyOS target +After=multi-user.target |