f-8: systemd: change systemd file #8
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
de7a678640
commit
93a2bc6d33
2 changed files with 1 additions and 18 deletions
|
|
@ -4,7 +4,7 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/run-metadata-in-netns.sh %i
|
||||
ExecStart=/opt/two/bin/metadata --vm %i
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Expects one argument: netns_bridge (e.g. vpc-00003_br-00002 or vpc1_br0)
|
||||
arg="$1"
|
||||
NETNS="${arg%%_*}"
|
||||
ip_port="${arg#*_}"
|
||||
IP="${ip_port%%-*}"
|
||||
PORT="${ip_port#*-}"
|
||||
|
||||
echo "start metadata ${NETNS} "
|
||||
|
||||
exec ip netns exec "${NETNS}" \
|
||||
/usr/bin/metadata \
|
||||
-file "/opt/metadata/${arg}.conf" \
|
||||
-interface "${IP}" \
|
||||
-port "${PORT}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue