Skip to content

Commit

Permalink
Backward compatibility systemd with windows
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Feb 2, 2022
1 parent 5a8250e commit d7c31de
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions systemd/systemd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// Use of this source code is governed by the GNU GPL v3
// license that can be found in the LICENSE file.

//go:build !windows
// +build !windows

package systemd // import "github.com/wabarc/wayback/systemd"

import (
Expand Down
3 changes: 3 additions & 0 deletions systemd/systemd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// Use of this source code is governed by the GNU GPL v3
// license that can be found in the LICENSE file.

//go:build !windows
// +build !windows

package systemd // import "github.com/wabarc/wayback/systemd"

import (
Expand Down
15 changes: 15 additions & 0 deletions systemd/systemd_windows.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright 2021 Wayback Archiver. All rights reserved.
// Use of this source code is governed by the GNU GPL v3
// license that can be found in the LICENSE file.

package systemd // import "github.com/wabarc/wayback/systemd"

const SdNotifyReady = "READY=1"

func HasNotifySocket() bool {
return false
}

func SdNotify(state string) error {
return nil
}

0 comments on commit d7c31de

Please sign in to comment.