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

can't enable service #28

Open
Fluoo opened this issue Aug 17, 2016 · 3 comments
Open

can't enable service #28

Fluoo opened this issue Aug 17, 2016 · 3 comments

Comments

@Fluoo
Copy link

Fluoo commented Aug 17, 2016

Hello,

I have migrate my serveur to Ubuntu 16.04.1 LTS and make a new installation of fail2rest on it.

Everything is ok the service work fine but I have a probléme for enable it on reboot of the server.

systemctl enable fail2rest.service
Failed to execute operation: Invalid argument

Do you have an idea ?

Regards.

@Fluoo
Copy link
Author

Fluoo commented Aug 17, 2016

Hello,

After a lot of test on my Ubuntu server I found one solution.

1 I need to copy $GOPATH/src/github.com/Sean-Der/fail2rest/init-scripts/systemd to $GOPATH/src/github.com/Sean-Der/fail2rest/init-scripts/fail2rest.service
I have try to make a symbolic link but It doesn't work. I need that the file is a .service

2 I haven't done ln -s $GOPATH/src/github.com/Sean-Der/fail2rest/init-scripts/systemd /etc/systemd/system/fail2rest.service
the step 3 do it for me

3 instead of systemctl enable fail2rest.service I made
systemctl enable $GOPATH/src/github.com/Sean-Der/fail2rest/init-scripts/fail2rest.service

Regards

@decentral1se
Copy link

I can confirm that @Fluoo's approach works! Thank you @Fluoo.

I will submit a pull request to this effect to close this off.

decentral1se added a commit to decentral1se/fail2rest that referenced this issue May 23, 2019
@decentral1se
Copy link

Oh, actually, another approach: rename the files! Please see #36.

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