fail2rest
fail2rest copied to clipboard
can't enable service
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.
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
I can confirm that @Fluoo's approach works! Thank you @Fluoo.
I will submit a pull request to this effect to close this off.
Oh, actually, another approach: rename the files! Please see https://github.com/Sean-Der/fail2rest/pull/36.