How to configure dinit services? 21 May 2024, 16:29:21 I have been trying to change tmpfs size in the tmpfs service but I just changed the command in the service file, but is there a cleaner way to do this? And same with zramen init file where i need to change the size, but I'm not sure how to do it without just changing the service file itself that i assume will be overwritten by a possible update?
Re: How to configure dinit services? Reply #1 – 21 May 2024, 18:27:10 Probably not, the alternative would be (assuming you're on openrc) to create a conf.d/zramen for init.d/zramen to source, which (for the '-s <uint>' argument you want) is overkill.
Re: How to configure dinit services? Reply #2 – 25 May 2024, 03:26:01 I am thinking about ways to add easier service configuration to Dinit in a future version.For the moment you can override the distro-provided service description, assuming it is located in /usr/lib/dinit.d, by copying it to /etc/dinit.d and making whatever changes you like there (this information, incidentally, is in the documentation). That way your changes shouldn't be overwritten by any update. The downside is that if there are fixes or other changes to the distro-provided service description (eg if they add a dependency or so on) you won't automatically get those fixes in your edited copy. 2 Likes
Re: How to configure dinit services? Reply #3 – 26 May 2024, 06:30:03 Quote from: davmac – on 25 May 2024, 03:26:01I am thinking about ways to add easier service configuration to Dinit in a future version.For the moment you can override the distro-provided service description, assuming it is located in /usr/lib/dinit.d, by copying it to /etc/dinit.d and making whatever changes you like there (this information, incidentally, is in the documentation). That way your changes shouldn't be overwritten by any update. The downside is that if there are fixes or other changes to the distro-provided service description (eg if they add a dependency or so on) you won't automatically get those fixes in your edited copy.I've got a question, do you know where zramen's config file is? I've been looking but can't seem to find it.