fail2rest icon indicating copy to clipboard operation
fail2rest copied to clipboard

can't enable service

Open Fluoo opened this issue 8 years ago • 3 comments

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 avatar Aug 17 '16 08:08 Fluoo

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

Fluoo avatar Aug 17 '16 09:08 Fluoo

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 avatar May 23 '19 08:05 decentral1se

Oh, actually, another approach: rename the files! Please see https://github.com/Sean-Der/fail2rest/pull/36.

decentral1se avatar May 23 '19 09:05 decentral1se