Skip to content

Commit

Permalink
Merge pull request #1 from jehiah/go_mod_1
Browse files Browse the repository at this point in the history
go module support
  • Loading branch information
jehiah authored Dec 30, 2019
2 parents e5e7372 + d0ada99 commit cbef49c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: go
go:
- 1.x
sudo: false
notifications:
email: false
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
T License (MIT)
License (MIT)

Copyright (c) 2015 Jehiah Czebotar

Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# go-daemontools

[![Build Status](https://secure.travis-ci.org/jehiah/go-daemontools.png?branch=master)](http://travis-ci.org/jehiah/go-daemontools) [![GoDoc](https://godoc.org/github.com/jehiah/go-daemontools?status.svg)](https://godoc.org/github.com/jehiah/go-daemontools) [![GitHub release](https://img.shields.io/github/release/jehiah/go-daemontools.svg)](https://github.com/jehiah/go-daemontools/releases/latest)

Go library for managing daemontools (svc, svstat)

<https://cr.yp.to/daemontools.html>
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/jehiah/go-daemontools

go 1.13
7 changes: 6 additions & 1 deletion svstat_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
package daemontools

import (
"os"
"testing"
)

func TestSvstat(t *testing.T) {
s, err := Svstat("/service/v3_api")
_, err := os.Stat("/service/nsqd")
if err != nil && os.IsNotExist(err) {
t.SkipNow()
}
s, err := Svstat("/service/nsqd")
if err != nil || s.PID == 0 {
t.Errorf("%v %v", s, err)
}
Expand Down

0 comments on commit cbef49c

Please sign in to comment.