Skip to main content
Topic: How to prevent certain services from starting (Read 936 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to prevent certain services from starting

Hi all,

Please be gentle with me -- Artix (and Arch, for that matter) newbie. Not newbie on Debian/Ubuntu-based distros, but of course, this is new stuff.

I like using lighter applications and systems (and so far, am very pleased in Artix's lightness!). I like using things like parcellite if I use a clipboard manager, Xfe as a file manager, dunst as my notifier daemon, and that's part of the problem. I installed the latest Artix with Openrc and Xfce, and would like to use dunst instead of xfce4-notifyd, but the @#$% thing keeps starting. The Xfce Session and Startup thing doesn't do it. Oh, it DOES add an xfce4-notifyd.desktop file to my .config/autostart files, with Hidden-true, but it starts up nonetheless. So how does one control what can (and will) startup automagically in Artix?

Also, unless someone can tell me the benefit of having a "Thunar" app running in the background all the time, I'd like to prevent that from starting as well.

Thanks in advance!

Re: How to prevent certain services from starting

Reply #1
Hi all,

Please be gentle with me -- Artix (and Arch, for that matter) newbie. Not newbie on Debian/Ubuntu-based distros, but of course, this is new stuff.

I like using lighter applications and systems (and so far, am very pleased in Artix's lightness!). I like using things like parcellite if I use a clipboard manager, Xfe as a file manager, dunst as my notifier daemon, and that's part of the problem. I installed the latest Artix with Openrc and Xfce, and would like to use dunst instead of xfce4-notifyd, but the @#$% thing keeps starting. The Xfce Session and Startup thing doesn't do it. Oh, it DOES add an xfce4-notifyd.desktop file to my .config/autostart files, with Hidden-true, but it starts up nonetheless. So how does one control what can (and will) startup automagically in Artix?

Also, unless someone can tell me the benefit of having a "Thunar" app running in the background all the time, I'd like to prevent that from starting as well.

Thanks in advance!


with openrc they can be removed from the start up with rc-status and rc-update.  I leave reading the man pages to you.

Re: How to prevent certain services from starting

Reply #2
Hi all,

Please be gentle with me -- Artix (and Arch, for that matter) newbie.
Welcome to Artix!



Quote
The Xfce Session and Startup thing doesn't do it. Oh, it DOES add an xfce4-notifyd.desktop file to my .config/autostart files, with Hidden-true, but it starts up nonetheless. So how does one control what can (and will) startup automagically in Artix?
In xfce4-session-settings you have a tab that allows you to see certain programs at startup and disable them if necessary.


Here are some useful links for OpenRC.
The last one points to a French page that deserves to be translated into your language.

https://wiki.archlinux.org/title/OpenRC
https://wiki.gentoo.org/wiki/OpenRC
https://www.linuxtricks.fr/wiki/openrc-les-commandes-essentielles


Re: How to prevent certain services from starting

Reply #3
Thanks, @mrbrklyn -- I shall RTFM!!  Glad to know it.

And thanks, @tintin -- I already feel welcome, having received 2 replies. There are other forums all I get are crickets....

I was trying to explain, regarding the xfce4-session-settings, I DID un-check the startup box for xfce4-notifyd, and added a startup action for dunst, but xfce4-notifyd still starts and then dunst cannot. I'll see if the openrc rc-status/rc-update stuff offers any clues. (EDIT -- it doesn't -- running "rc-update -v show" has no xfce services to start or stop, period.)

Thanks again, y'all!

Oh yeah -- do I need to open another ticket to find out where I can get jwm from? Seems pacman can't find it.

Re: How to prevent certain services from starting

Reply #4
If you are looking for something that starts with the DM then it will not be part of the init system and rc-status won't be much help.  My apologies for misunderstanding.

Re: How to prevent certain services from starting

Reply #5
No worries, @mrbrklyn !  I appreciate anything I can get, even if it's initially a misunderstanding. Now I know a little bit more about Artix and Openrc that I didn'''t know before, see?

 

Re: How to prevent certain services from starting

Reply #6

Oh yeah -- do I need to open another ticket to find out where I can get jwm from? Seems pacman can't find it.

The only way that I was able to get jwm installed was to add the chaotic.aur repo (search for it and it'll tell you what to do and how to do it).  You'll have to add arch Linux support (see the Artix wiki on repos how to do this) and follow instructions therein. You don't have to add the arch repos (unless you want to of course) to get the chaotic aur repo installed and working.

As you're doing all of this in Virtualbox then it's a great way to see what works and what doesn't etc. 👍

Re: How to prevent certain services from starting

Reply #7
And thanks, @tintin -- I already feel welcome, having received 2 replies. There are other forums all I get are crickets....

 8)



Quote
I was trying to explain, regarding the xfce4-session-settings, I DID un-check the startup box for xfce4-notifyd, and added a startup action for dunst, but xfce4-notifyd still starts and then dunst cannot.

On this PC, xfce4-power-manager requires xfce4-notifyd.
This may be why xfce4-notifyd is still launched at startup.

Code: [Select]
pactree -r xfce4-notifyd
xfce4-notifyd
└─xfce4-power-manager

But if I don't need these two applications, I can uninstall them:
Code: [Select]
sudo pacman -R xfce4-notifyd xfce4-power-manager


Quote
Oh yeah -- do I need to open another ticket to find out where I can get jwm from? Seems pacman can't find it.

jwm is on aur or on chaotic-aur :
Code: [Select]
trizen jwm
1 chaotic-aur/jwm 2.4.6-1
    A lightweight window manager for the X11 Window System
2 aur/jwm 2.4.6-1 [4+] [0.00%] [10 Nov 2024]
    A lightweight window manager for the X11 Window System

https://aur.chaotic.cx/
https://aur.chaotic.cx/docs


###

P.S. I don't use the Arch repositories, but I have installed a few rare packages from aur or chaotic-aur using yay or trizen.

trizen is in the galaxy repository:
Code: [Select]
pacman -Ss trizen
galaxy/trizen 1.68-1.1 [installed]
Trizen AUR Package Manager: lightweight pacman wrapper and AUR helper.

https://wiki.artixlinux.org/Main/Repositories

yay in on aur or on chaotic aur.

Re: How to prevent certain services from starting

Reply #8
If you only need one particular package from a huge (and arguably unsafe) external repository like Chaotic, you could also download the package file manually (from here), and install it with "pacman -U". Then you'll have to handle updates manually, but something like jwm probably doesn't update that often.

Your preferences might differ, but I do this with a number of packages and don't find it to be too much of a hassle. You can see a list of packages installed in this way with "pacman -Qm".

And jwm is of course in the AUR, too, so you can compile it yourself. It's worth learning about the AUR and PKGBUILDs if you ever want to fine-tune or tweak your setup.

Re: How to prevent certain services from starting

Reply #9
Thanks, @Zendjinn , @tintin and @lotuskip ! Lots of good information there!

I actually did get Artix installed on my internal SSD after a long drawn out kerfufflle. In other words, long story.

I'm more tempted to try the direct download/pacman suggestion. Yeah, I don't think Joe updates his WM too often.  ;)

I hope Artix and LightDM play better with JWM than they have been with OpenBox. Disappointing.

Re: How to prevent certain services from starting

Reply #10
Well, all, I'm getting to the point where Artix (and any other distro using the Calamares installer, which mostly seem to be Arch spawn) is a bit more of a chore to eff with at my point in life. I'm now down two working distros after this Artix install -- see the last page of this.

Since I DO have Artix installed and sorta working, I MIGHT try seeing if I can get JWM installed and working better than OpenBox, but if that fails, I think I'm done.

And thanks, @tintin -- it's sad that Xfce4 power manager HAS to use Xfce4 notify daemon rather than another working one, but at least it does give me the opportunity to try disabling its startup in Xfce4 sessions, and then maybe I can have it added back once dunst is up.

EDIT2: Thanks @lotuskip -- on my EndeavourOS virtual machine, I was able to use your manual install method to get JWM downloaded and installed, and was able to fire it up JUST FINE. Now to try it in Artix.

Re: How to prevent certain services from starting

Reply #11
Sheesh. My Artix installation is really fouled up. Just getting to the login screen takes 1-3 minutes or more, and then another 1-3 minutes to get into the environment. It's been doing lots of something 'cause the package id 0 thermal sensor monitor I installed on the Xfce panel says it's at 81C or 82C -- and that's with my having properly set up the stuff to turn off the Nvidia GPU, which is usually the source of much overheating if I don't do that.

On the plus side -- if there is one -- I did manage to get JWM installed. It's still not set up properly, but its JWM panel shows and its menu has a few applications, and none of them work. Can't get a terminal up. And here's the other thing -- when I log out of Xfce to go into JWM or when I log out of JWM to go back into Xfce, the whole loooong hot summer process as loosely described above again comes into play.

I gots a seriously fouled up system, and it's fouled up other distros on my computer. I'm thinking this is the nail in the coffin....