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

[email protected] hardcodes /usr/sbin/tincd path #160

Closed
pjv opened this issue Nov 9, 2017 · 1 comment
Closed

[email protected] hardcodes /usr/sbin/tincd path #160

pjv opened this issue Nov 9, 2017 · 1 comment

Comments

@pjv
Copy link

pjv commented Nov 9, 2017

I don't do a lot of compiling from source, so forgive me if this is just ignorance, but I recently compiled 1.1pre15 from source on Ubuntu 17.10. I wanted the binaries to be located in standard system (not /usr) directories, and I wanted to manage the service with systemd so the configuration was done like this:

./configure --prefix= --with-systemd

then make
then sudo make install

When I then configured a network and tried to bring the tinc service up using

systemctl enable tinc@<netname>

the service didn't come up and the error log told me that /usr/sbin/tincd was not found.

To make it work, I had to edit the [email protected] file that was installed in /lib/systemd/system/[email protected] and change the two instances of /usr/sbin/tincd to /sbin/tincd.

After that, everything worked as expected.

Maybe I don't understand how ./configure is supposed to work, but when I ran it with --prefix= isn't that what made the install directory for tincd be /sbin/ and shouldn't that have also modified the [email protected] file so that it pointed to the correct path?

Or do I have this all wrong?

@gsliepen
Copy link
Owner

You are right, it's currently hardcoded and it shouldn't be.

gsliepen added a commit that referenced this issue Jan 6, 2018
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