Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715292 - app-laptop/thinkfan-1.0.2: thinkfan.service could not be found.
Summary: app-laptop/thinkfan-1.0.2: thinkfan.service could not be found.
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Johannes Willem (Hans) Fernhout
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-29 10:44 UTC by Vasco Gervasi
Modified: 2021-04-13 07:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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` .