Skip to content

Commit 46accc9

Browse files
committed
Merge branch 'release/v0.4.0'
2 parents c8131f6 + 5aef2ae commit 46accc9

File tree

5 files changed

+18
-8
lines changed

5 files changed

+18
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
bin
2+
.DS_Store

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [v0.4.0]
8+
9+
Improved systemd reliability (thanks to @hermsi1337)
10+
11+
### Changed
12+
- Change the application version to v0.3.0
13+
- Improve systemd-reliability (see: dcsg#6)
14+
715
## [v0.3.0] - 2017-03-11
816

917
Timeouts and restart policy

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ For the `uninstall` action **dcsg** remove the systemd service it created earlie
6363

6464
You can download pre-built binaries for Linux (64bit, ARM 5, ARM 6 and ARM 7) from [github.com » andreaskoch » dcsg » releases](/releases/latest):
6565

66-
- [Download for dcsg (Linux 64bit)](https://github.com/andreaskoch/dcsg/releases/download/v0.2.0/dcsg_linux_amd64)
67-
- [Download for dcsg (Linux ARM5)](https://github.com/andreaskoch/dcsg/releases/download/v0.2.0/dcsg_linux_arm5)
68-
- [Download for dcsg (Linux ARM6)](https://github.com/andreaskoch/dcsg/releases/download/v0.2.0/dcsg_linux_arm6)
69-
- [Download for dcsg (Linux ARM7)](https://github.com/andreaskoch/dcsg/releases/download/v0.2.0/dcsg_linux_arm7)
66+
- [Download for dcsg (Linux 64bit)](https://github.com/andreaskoch/dcsg/releases/download/v0.3.0/dcsg_linux_amd64)
67+
- [Download for dcsg (Linux ARM5)](https://github.com/andreaskoch/dcsg/releases/download/v0.3.0/dcsg_linux_arm5)
68+
- [Download for dcsg (Linux ARM6)](https://github.com/andreaskoch/dcsg/releases/download/v0.3.0/dcsg_linux_arm6)
69+
- [Download for dcsg (Linux ARM7)](https://github.com/andreaskoch/dcsg/releases/download/v0.3.0/dcsg_linux_arm7)
7070

7171
```bash
72-
curl -L https://github.com/andreaskoch/dcsg/releases/download/v0.2.0/dcsg_linux_amd64 > /usr/local/bin/dcsg
72+
curl -L https://github.com/andreaskoch/dcsg/releases/download/v0.3.0/dcsg_linux_amd64 > /usr/local/bin/dcsg
7373
chmod +x /usr/local/bin/dcsg
7474
```
7575

installer.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ func getServiceName(projectName string) string {
7474

7575
const serviceTemplate = `[Unit]
7676
Description={{ .ProjectName }} Service
77-
After=network.target
77+
After=network.service docker.service
78+
Requires=docker.service
7879
7980
[Service]
8081
Restart=always
@@ -87,7 +88,7 @@ ExecStop=/usr/bin/env docker-compose -p "{{ .ProjectName }}" -f "{{ .DockerCompo
8788
ExecStopPost=/usr/bin/env docker-compose -p "{{ .ProjectName }}" -f "{{ .DockerComposeFile }}" down
8889
8990
[Install]
90-
WantedBy=network-online.target
91+
WantedBy=docker.service
9192
`
9293

9394
type serviceDefinition struct {

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
const applicationName = "dcsg"
11-
const applicationVersion = "v0.1.1-alpha"
11+
const applicationVersion = "v0.4.0"
1212

1313
var (
1414
app = kingpin.New(applicationName, fmt.Sprintf("%s creates systemd services for Docker Compose projects (%s)", applicationName, applicationVersion))

0 commit comments

Comments
 (0)