FS#42930 - [hdparm] Add a systemd service unit to start hdparm at boot

Attached to Project: Arch Linux
Opened by Leryan (Leryan) - Thursday, 27 November 2014, 17:22 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 30 March 2021, 12:18 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Hello,

I've just created a systemd service unit to start hdparm at boot:

$ cat /etc/systemd/system/hdparm.service
[Unit]
Description=HDParm settings

[Service]
Type=oneshot
EnvironmentFile=/etc/default/hdparm
ExecStart=/usr/bin/hdparm $EXEC_OPTIONS

[Install]
WantedBy=basic.target


$ cat /etc/default/hdparm
EXEC_OPTIONS="-B 255 /dev/sda"



Is it possible to add something like that in the package?

Thanks.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Tuesday, 30 March 2021, 12:18 GMT
Reason for closing:  None
Additional comments about closing:  Take a look at the last comment
Comment by Samantha McVey (samcv) - Thursday, 09 June 2016, 20:17 GMT
If the .service file you are suggesting is not part of the upstream package (which is what you seem to be saying) it may be best to create your own AUR package to add extra service files. Also feel free to add a reference to the .service file you create to the wiki https://wiki.archlinux.org/index.php/Hdparm so other users can find it. Thanks!
Comment by Samantha McVey (samcv) - Thursday, 09 June 2016, 23:52 GMT
"Project Manager denied request - This is a valid request, and an AUR package is not a good way to go for a single service file."
In this case, can the original opener of this bug respond if they are still around. Information further describing the purpose for this service file would be a great start.
/etc/default/hdparm is not a file in the hdparm package, and you list your options for it so that would be another thing.

Loading...