Skip to content

Feature/mg 359 - Service stopped of work in normal mode#24

Merged
mageddo merged 9 commits intomasterfrom
feature/MG-359
Jul 22, 2017
Merged

Feature/mg 359 - Service stopped of work in normal mode#24
mageddo merged 9 commits intomasterfrom
feature/MG-359

Conversation

@mageddo
Copy link
Copy Markdown
Owner

@mageddo mageddo commented Jul 22, 2017

Since 2.0.20 the Docker service setup has stopped of work using normal mode

How to reproduce

$ sudo ./build/dns-proxy-server --service=normal
17-07-20 18:11:08.966 INF m=ConfigSetupService, status=script, script=\/home\/elvis\/dev\/projects\/dns-proxy-server\/build\/dns-proxy-server%!(EXTRA int=5380, int=5380, string=2.0.20)
17-07-20 18:11:08.966 INF m=Exec, cmd=sed, args=[-i s/<SCRIPT>/\/home\/elvis\/dev\/projects\/dns-proxy-server\/build\/dns-proxy-server%!(EXTRA int=5380, int=5380, string=2.0.20)/g /etc/init.d/dns-proxy-server]
17-07-20 18:11:08.967 INF m=Exec, status=success, cmd=sed
17-07-20 18:11:08.967 INF m=Exec, cmd=sh, args=[-c command -v update-rc.d || false]
17-07-20 18:11:08.968 INF m=Exec, status=success, cmd=sh
17-07-20 18:11:08.968 INF m=Exec, cmd=update-rc.d, args=[dns-proxy-server defaults]
17-07-20 18:11:08.994 INF m=Exec, status=success, cmd=update-rc.d
17-07-20 18:11:08.994 INF m=Exec, cmd=service, args=[dns-proxy-server stop]
17-07-20 18:11:09.008 INF m=Exec, status=error, type=*exec.ExitError, err=exit status 2
17-07-20 18:11:09.008 DEB status=stop-service, msg=out=/etc/init.d/dns-proxy-server: 11: /etc/init.d/dns-proxy-server: Syntax error: "(" unexpected
17-07-20 18:11:09.008 INF m=Exec, cmd=service, args=[dns-proxy-server start]
17-07-20 18:11:09.009 INF m=Exec, status=error, type=*exec.ExitError, err=exit status 2
17-07-20 18:11:09.010 CRI status=start-service, msg=exit status 2

What happen

The DNS Proxy server doesn't install as a service

What is expected

The DNS Proxy server installed as a service

Cause

The cause is the line src/github.com/mageddo/dns-proxy-server/conf/conf.go:274, the fmt verbs don't exist at this point when in normal mode

@mageddo mageddo added this to the 2.0.21 milestone Jul 22, 2017
@mageddo mageddo merged commit ed32526 into master Jul 22, 2017
@mageddo mageddo deleted the feature/MG-359 branch July 22, 2017 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant