Skip to content

Commit

Permalink
Merge pull request #148 from ibuildthecloud/revert
Browse files Browse the repository at this point in the history
Revert "Enable systemd ready notification for k3s server"
  • Loading branch information
ibuildthecloud authored Mar 4, 2019
2 parents 49d0f20 + 0414f97 commit 6de915d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ Documentation=https://k3s.io
After=network.target

[Service]
Type=notify
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/k3s server
Expand Down
1 change: 0 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ Documentation=https://k3s.io
After=network.target
[Service]
Type=notify
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/k3s server
Expand Down
1 change: 0 additions & 1 deletion k3s.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Documentation=https://k3s.io
After=network.target

[Service]
Type=notify
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/k3s server
Expand Down
4 changes: 0 additions & 4 deletions pkg/cli/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"path/filepath"
"strings"

systemd "github.com/coreos/go-systemd/daemon"
"github.com/docker/docker/pkg/reexec"
"github.com/natefinch/lumberjack"
"github.com/pkg/errors"
Expand All @@ -20,7 +19,6 @@ import (
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
"k8s.io/apimachinery/pkg/util/net"
genericapiserver "k8s.io/apiserver/pkg/server"

_ "github.com/mattn/go-sqlite3" // ensure we have sqlite
)
Expand Down Expand Up @@ -53,7 +51,6 @@ func runWithLogging(app *cli.Context, cfg *cmds.Server) error {
}

func Run(app *cli.Context) error {
genericapiserver.NotifySystemD = false
return run(app, &cmds.ServerConfig)
}

Expand Down Expand Up @@ -109,7 +106,6 @@ func run(app *cli.Context, cfg *cmds.Server) error {
}

logrus.Info("k3s is up and running")
go systemd.SdNotify(false, "READY=1")

if cfg.DisableAgent {
<-ctx.Done()
Expand Down

0 comments on commit 6de915d

Please sign in to comment.