Skip to content

Commit

Permalink
Merge pull request #34 from funbox/develop
Browse files Browse the repository at this point in the history
Version 0.15.2
  • Loading branch information
andyone authored Aug 30, 2017
2 parents 67b5dfc + 330ef31 commit 4d74e68
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ sudo: false
language: go

go:
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- tip

branches:
Expand Down
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
// App props
const (
APP = "init-exporter"
VER = "0.15.1"
VER = "0.15.2"
DESC = "Utility for exporting services described by Procfile to init system"
)

Expand Down
5 changes: 4 additions & 1 deletion common/init-exporter.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

Summary: Utility for exporting services described by Procfile to init system
Name: init-exporter
Version: 0.15.1
Version: 0.15.2
Release: 0%{?dist}
Group: Development/Tools
License: MIT
Expand Down Expand Up @@ -111,6 +111,9 @@ rm -rf %{buildroot}
###############################################################################

%changelog
* Tue Aug 29 2017 Anton Novojilov <[email protected]> - 0.15.2-0
- Fixed output redirect in systemd units

* Thu Jun 01 2017 Anton Novojilov <[email protected]> - 0.15.1-0
- Added support of asterisk symbol in environment variables
- Improved paths validation
Expand Down
6 changes: 3 additions & 3 deletions export/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func (s *ExportSuite) TestSystemdExport(c *C) {
"User=service",
"Group=service",
"WorkingDirectory=/srv/service/serviceA-dir",
fmt.Sprintf("ExecStart=/bin/bash %s/test_application-serviceA1.sh &>>/var/log/test_application/serviceA.log", helperDir),
fmt.Sprintf("ExecStart=/bin/sh -c '/bin/bash %s/test_application-serviceA1.sh &>>/var/log/test_application/serviceA.log'", helperDir),
"",
""},
)
Expand Down Expand Up @@ -403,7 +403,7 @@ func (s *ExportSuite) TestSystemdExport(c *C) {
"User=service",
"Group=service",
"WorkingDirectory=/srv/service/serviceA-dir",
fmt.Sprintf("ExecStart=/bin/bash %s/test_application-serviceA2.sh &>>/var/log/test_application/serviceA.log", helperDir),
fmt.Sprintf("ExecStart=/bin/sh -c '/bin/bash %s/test_application-serviceA2.sh &>>/var/log/test_application/serviceA.log'", helperDir),
"",
""},
)
Expand Down Expand Up @@ -435,7 +435,7 @@ func (s *ExportSuite) TestSystemdExport(c *C) {
"User=service",
"Group=service",
"WorkingDirectory=/srv/service/working-dir",
fmt.Sprintf("ExecStart=/bin/bash %s/test_application-serviceB.sh &>>/var/log/test_application/serviceB.log", helperDir),
fmt.Sprintf("ExecStart=/bin/sh -c '/bin/bash %s/test_application-serviceB.sh &>>/var/log/test_application/serviceB.log'", helperDir),
"ExecReload=/bin/kill -SIGUSR2 $MAINPID",
""},
)
Expand Down
2 changes: 1 addition & 1 deletion export/systemd.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ ExecStartPre=/bin/chmod g+w /var/log/{{.Application.Name}}/{{.Service.Name}}.log
User={{.Application.User}}
Group={{.Application.Group}}
WorkingDirectory={{.Service.Options.WorkingDir}}
ExecStart=/bin/bash {{.Service.HelperPath}} &>>/var/log/{{.Application.Name}}/{{.Service.Name}}.log
ExecStart=/bin/sh -c '/bin/bash {{.Service.HelperPath}} &>>/var/log/{{.Application.Name}}/{{.Service.Name}}.log'
{{ if .Service.Options.IsReloadSignalSet }}ExecReload=/bin/kill -{{.Service.Options.ReloadSignal}} $MAINPID{{ end }}
`

Expand Down

0 comments on commit 4d74e68

Please sign in to comment.