[SOLVED] Artix/runit: muted sound, shutdown/reboot, cups 15 April 2025, 00:58:06 1. the sound volume in KDE is not saved on reboot and I need to unmute every time I boot into KDE, otherwise the sound works, I am using pulse. How to fix it?2. I need to run shutdown as sudo shutdown, I'd much prefer just to type shutdown without sudo (do I need to set SUID?)3. can cups run like an inetd service on demand? I'd like to rid myself of this daemon process. Can the same be done with openssh server?4. I already uninstalled and disabled metalog, can I disable/uninstall other useless services?5. How to run ntpdate whenever a network connection comes up? If you managed to cajole KDE to do the same, please share?Solved the sound issue: either trizen -S alsa-utils-runit or add /usr/bin/alsactl restore to rc.local Last Edit: 15 April 2025, 11:13:40 by ugluk
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #1 – Yesterday at 02:34:51 Quote from: ugluk – on 15 April 2025, 00:58:062. I need to run shutdown as sudo shutdown, I'd much prefer just to type shutdown without sudo (do I need to set SUID?)Use loginctl poweroff. You can alias it if you don't want to type loginctl every time.BTW, SUID wouldn't work anyway because runit shutdown is a shell script.Quote3. can cups run like an inetd service on demand? I'd like to rid myself of this daemon process. Can the same be done with openssh server?See man 8 cupsd and man 8 sshd. TLDR; no and yes respectively.Quote5. How to run ntpdate whenever a network connection comes up?Hook it up with dhcpcd, connman, NetworkManager or whatever you're using to set up network connections. Or make a runit service that tries and tries again until it succeeds, then exec's pause /shrug
Re: [SOLVED] Artix/runit: muted sound, shutdown/reboot, cups Reply #2 – Today at 12:48:47 I appreciate the workaround for the shutdown command; using loginctl poweroff is a great suggestion. Also good to know about the CUPS and OpenSSH service management; I’ll check the man pages for more details.As for running ntpdate on network connection up, I like the idea of integrating it with the network manager. I’ll look into creating a runit service that handles that as well.