@@ -59,7 +59,7 @@ $ sudo make install
5959-----------------------------------------------------------------------
6060| man pages | /usr/man |
6161-----------------------------------------------------------------------
62- | systemd service | /usr/lib |
62+ | systemd service | /usr/lib/systemd/system |
6363-----------------------------------------------------------------------
6464| systemd support script | /usr/libexec |
6565-----------------------------------------------------------------------
@@ -113,7 +113,7 @@ The files will be installed to the following dirs:
113113-----------------------------------------------------------------------
114114| man pages | ${DESTDIR}/usr/man |
115115-----------------------------------------------------------------------
116- | systemd service | ${DESTDIR}/usr/lib |
116+ | systemd service | ${DESTDIR}/usr/lib/systemd/system |
117117-----------------------------------------------------------------------
118118| systemd support script | ${DESTDIR}/usr/libexec |
119119-----------------------------------------------------------------------
@@ -185,11 +185,20 @@ systemd service
185185---------------
186186
187187A systemd service is also provided to run the cpupower utility at boot with
188- settings read from a configuration file. In order to enable this systemd
189- service, edit '${DESTDIR}/etc/default/cpupower' (uncommenting at least one of
190- the options, depending on your preferences) and then issue the following
188+ settings read from a configuration file.
189+
190+ If you want systemd to find the new service after the installation, the service
191+ unit must have been installed in one of the system unit search path directories
192+ (such as '/usr/lib/systemd/system/', which is the default location) and (unless
193+ you are willing to wait for the next reboot) you need to issue the following
191194command:
192195
196+ $ sudo systemctl daemon-reload
197+
198+ If you want to enable this systemd service, edit
199+ '${DESTDIR}/etc/default/cpupower' (uncommenting at least one of the options,
200+ depending on your preferences) and then issue the following command:
201+
193202$ sudo systemctl enable --now cpupower.service
194203
195204
0 commit comments