View previous topic :: View next topic |
Author |
Message |
reikdas Apprentice
Joined: 27 Nov 2018 Posts: 238
|
Posted: Sun Jan 06, 2019 8:33 am Post subject: Porting script from Systemd to OpenRC |
|
|
This is the script I want to port to openrc-
Code: | [Unit]
Description=Apply undervolt settings
[Timer]
Unit=undervolt.service
# Wait 2 minutes after boot before first applying
OnBootSec=2min
# Run every 30 seconds
OnUnitActiveSec=30
[Install]
WantedBy=multi-user.target |
The undervolt.service script mentioned-
Code: | [Unit]
Description=undervolt
[Service]
Type=oneshot
ExecStart=undervolt -v --core -160 --cache -160 --gpu -60 |
Is there a way to wrap code around this to make OpenRC work with this? (Also, do I need to store the script in a particular location?)
Or do I have to rewrite the scripts completely with start(), stop() and status() functions as mentioned here - https://github.com/OpenRC/openrc/blob/master/service-script-guide.md _________________ [19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer |
|
Back to top |
|
|
grumblebear Apprentice
Joined: 26 Feb 2008 Posts: 202
|
Posted: Sun Jan 06, 2019 8:58 am Post subject: |
|
|
That is a systemd timer, a kind of replacement for cron. No need (and no way) to port this to openrc. Just put the undervolt command in your system crontab. |
|
Back to top |
|
|
|