merge branch 'pr-1579'

Disable systemd in static build

LGTMs: @crosbymichael @cyphar
Closes #1579
This commit is contained in:
Aleksa Sarai
2017-09-12 08:01:24 +10:00
2 changed files with 3 additions and 3 deletions
@@ -1,4 +1,4 @@
// +build !linux
// +build !linux static_build
package systemd
@@ -43,7 +43,7 @@ func (m *Manager) GetStats() (*cgroups.Stats, error) {
}
func (m *Manager) Set(container *configs.Config) error {
return nil, fmt.Errorf("Systemd not supported")
return fmt.Errorf("Systemd not supported")
}
func (m *Manager) Freeze(state configs.FreezerState) error {
@@ -1,4 +1,4 @@
// +build linux
// +build linux,!static_build
package systemd