Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rhel: Add systemd-units for ovn-ic services
New ovn-ic.service and ovn-ic-db.service systemd units were added to manage ovn-ic and ovsdb-servers for OVN IC respectively. ovn-ic-db.service manages both OVN_IC_Northbound and OVN_IC_Southbound OVSDB server processes. Signed-off-by: Vladislav Odintsov <odivlad@gmail.com>
- Loading branch information
Showing
4 changed files
with
128 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# See ovn-ic(8) for details about ovn-ic. | ||
# | ||
# To customize the ovn-ic-db service, you may create a configuration file | ||
# in the /etc/systemd/system/ovn-ic-db.d/ directory. For example, to specify | ||
# additional options to be passed to the "ovn-ctl start_ic_ovsdb" command, you | ||
# could place the following contents in | ||
# /etc/systemd/system/ovn-ic-db.d/local.conf: | ||
# | ||
# [System] | ||
# Environment="OVN_IC_DB_OPTS=--db-ic-nb-create-insecure-remote=yes --db-ic-sb-create-insecure-remote=yes" | ||
# | ||
# Alternatively, you may specify environment variables in the file /etc/sysconfig/ovn-ic-db: | ||
# | ||
# OVN_IC_DB_OPTS="--db-ic-nb-create-insecure-remote=yes --db-ic-sb-create-insecure-remote=yes" | ||
|
||
[Unit] | ||
Description=OVN global (IC) northbound and southbound OVSDB servers | ||
After=syslog.target | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
Environment=OVN_RUNDIR=%t/ovn OVN_DBDIR=/var/lib/ovn | ||
EnvironmentFile=-/etc/sysconfig/ovn | ||
EnvironmentFile=-/etc/sysconfig/ovn-ic-db | ||
ExecStartPre=-/usr/bin/chown -R ${OVN_USER_ID} ${OVN_DBDIR} | ||
ExecStart=/usr/share/ovn/scripts/ovn-ctl \ | ||
--ovn-user=${OVN_USER_ID} start_ic_ovsdb $OVN_IC_DB_OPTS | ||
ExecStop=/usr/share/ovn/scripts/ovn-ctl stop_ic_ovsdb | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# See ovn-ic(8) for details about ovn-ic. | ||
# | ||
# To customize the ovn-ic service, you may create a configuration file | ||
# in the /etc/systemd/system/ovn-ic.d/ directory. For example, to specify | ||
# additional options to be passed to the "ovn-ctl start_ic" command, you | ||
# could place the following contents in | ||
# /etc/systemd/system/ovn-ic.d/local.conf: | ||
# | ||
# [System] | ||
# Environment="OVN_IC_OPTS=--db-ic-nb-sock=/usr/local/var/run/ovn/ovn_ic_nb_db.sock --db-ic-sb-sock=/usr/local/var/run/ovn/ovn_ic_sb_db.sock" | ||
# | ||
# Alternatively, you may specify environment variables in the file /etc/sysconfig/ovn-ic: | ||
# | ||
# OVN_IC_OPTS="--db-ic-nb-sock=/usr/local/var/run/ovn/ovn_ic_nb_db.sock --db-ic-sb-sock=/usr/local/var/run/ovn/ovn_ic_sb_db.sock" | ||
|
||
[Unit] | ||
Description=OVN ic management daemon | ||
After=syslog.target | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
Environment=OVN_RUNDIR=%t/ovn OVN_DBDIR=/var/lib/ovn | ||
EnvironmentFile=-/etc/sysconfig/ovn | ||
EnvironmentFile=-/etc/sysconfig/ovn-ic | ||
ExecStart=/usr/share/ovn/scripts/ovn-ctl \ | ||
--ovn-user=${OVN_USER_ID} start_ic $OVN_IC_OPTS | ||
ExecStop=/usr/share/ovn/scripts/ovn-ctl stop_ic | ||
|
||
[Install] | ||
WantedBy=multi-user.target |