Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Start Service #176

Open
mahummon opened this issue Jun 12, 2019 · 1 comment
Open

Unable to Start Service #176

mahummon opened this issue Jun 12, 2019 · 1 comment

Comments

@mahummon
Copy link

New user here. Trying to run the example located at
https://github.com/kardianos/service/tree/master/example/logging

but I'm getting the following error.

Failed to start Go Service Example for Logging: The dependency service does not exist or has been marked for deletion.

I'm assuming this is because of

...
Dependencies: []string{
	"Requires=network.target",
	"After=network-online.target syslog.target"},

specifically the syslog.target.

Could someone point me in the right direction to get this example running? I'm assuming I need a syslog service running... do I name it syslog? I'm unfamilar with syslog.target

@lovelykd
Copy link

@mahummon I met the same problem in Windows platform.
By removing the two strings from dependencies and rebuilding the source, i could make the service running.
I guess these dependencies are only required in Linux platforms.

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

No branches or pull requests

2 participants