Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 715292

Summary: app-laptop/thinkfan-1.0.2: thinkfan.service could not be found.
Product: Gentoo Linux Reporter: Vasco Gervasi <yellowhat46>
Component: Current packagesAssignee: Johannes Willem (Hans) Fernhout <hfern>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vasco Gervasi 2020-03-29 10:44:52 UTC
Hi,
I have just installed thinkfan, I have configure it, and I am able to test it with `thinkfan -n`.
I would like to enable the `thinkfan` service:

# systemctl enable thinkfan
Failed to enable unit: Unit file thinkfan.service does not exist.

I can see that there is `thinkfan.service` and `thinkfan-wakeup.service` in `/usr/lib64/systemd/system`.

Is this the wrong location?

Thanks






Reproducible: Always

Steps to Reproduce:
1. emerge -a thinkfan
2. systemctl enable thinkfan
3.
Actual Results:  
Failed to enable unit: Unit file thinkfan.service does not exist.

Expected Results:  
Service start
Comment 1 Johannes Willem (Hans) Fernhout 2021-04-04 18:38:22 UTC
Systemd service files should be in /lib/systemd/system. The current ebuild does not install these even though they are provided by upstream. I am working on a version upgrade and will install the systemd service files.
Comment 2 Johannes Willem (Hans) Fernhout 2021-04-05 08:46:47 UTC
After a bit more research I found out that if the thinkfan's cmake detects that systemd is installed, then it installs:
- /usr/lib/systemd/system/thinkfan-sleep.service
- /usr/lib/systemd/system/thinkfan-wakeup.service
- /usr/lib/systemd/system/thinkfan.service
- /etc/systemd/system/thinkfan.service.d/override.conf

For this to work systemd needs to be installed, i.e. be detected by 
`pkg-config --list-all systemd` .