이름 리네이밍
This commit is contained in:
parent
6653d543b5
commit
e013b00167
|
@ -1,7 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// "github.com/ttacon/libphonenumber"
|
|
||||||
|
|
||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
|
@ -25,7 +24,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
app = kingpin.New("plugin", "nspawn Bootstrapper.").Author("Sangbum Kim<sangbumkim@amuz.es>")
|
app = kingpin.New("octopus-outside", "nspawn Bootstrapper.").Author("Sangbum Kim<sangbumkim@amuz.es>")
|
||||||
verbosePtr = app.Flag("verbose", "Enable verbose mode.").Short('v').Bool()
|
verbosePtr = app.Flag("verbose", "Enable verbose mode.").Short('v').Bool()
|
||||||
clearPtr = app.Flag("clear", "clear os environment.").Short('p').Bool()
|
clearPtr = app.Flag("clear", "clear os environment.").Short('p').Bool()
|
||||||
nspawnPathPtr = app.Flag("nspawn-path", "systemd-nspawn location.").Short('s').String()
|
nspawnPathPtr = app.Flag("nspawn-path", "systemd-nspawn location.").Short('s').String()
|
|
@ -1,11 +1,8 @@
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=MACVLAN setup
|
Description=octopus-inside, systemd-nspawn network configuration injector
|
||||||
#Documentation=man:systemd-networkd.service(8)
|
|
||||||
ConditionCapability=CAP_NET_ADMIN
|
ConditionCapability=CAP_NET_ADMIN
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
# dbus.service can be dropped once on kdbus, and systemd-udevd.service can be
|
|
||||||
# dropped once tuntap is moved to netlink
|
|
||||||
After=systemd-udevd.service dbus.service network-pre.target systemd-sysusers.service systemd-sysctl.service
|
After=systemd-udevd.service dbus.service network-pre.target systemd-sysusers.service systemd-sysctl.service
|
||||||
Before=network.target multi-user.target shutdown.target
|
Before=network.target multi-user.target shutdown.target
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
|
@ -13,10 +10,9 @@ Wants=network-online.target
|
||||||
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
# the VT is cleared by TTYVTDisallocate
|
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
EnvironmentFile=/proc/1/environ
|
EnvironmentFile=/proc/1/environ
|
||||||
ExecStart=/usr/bin/connet
|
ExecStart=/usr/bin/octopus-inside
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
|
@ -11,10 +11,11 @@ Documentation=man:systemd-nspawn(1)
|
||||||
PartOf=machines.target
|
PartOf=machines.target
|
||||||
Before=machines.target
|
Before=machines.target
|
||||||
After=network.target
|
After=network.target
|
||||||
|
After=dnsmasq.service
|
||||||
After=pdnsd.service
|
After=pdnsd.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/container/plugin %I igb0 -v
|
ExecStart=/container/octopus-outside %I igb0 -v
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
Type=notify
|
Type=notify
|
||||||
RestartForceExitStatus=133
|
RestartForceExitStatus=133
|
Loading…
Reference in New Issue