SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If my memories are good, this option exists under gnome
And I wanted a similar one under KDE :
Be able to change themes according to the hours of the day
I made a slackbuild
It uses the wonderful daemon thanks to ZhaoLin & raforg
If my memories are good, this option exists under gnome
And I wanted a similar one under KDE :
Be able to change themes according to the hours of the day
I made a slackbuild
It uses the wonderful daemon thanks to ZhaoLin & raforg
Congratulation for you project and for practical demonstrating also that this daemon supervisor is of general purpose, for any "user target" daemons we will want eventually to handle.
And also looks like you understand properly what those "user target" daemons are, up to to creating your own ones.
Regarding your 5 minutes sleep from script, I believe that's a not so fortunate idea...
As well, you can split this sleep time in seconds sized pieces, making your script much more responsive.
Like this
Code:
COUNT=300
while [ "$NOW" -lt "2359" ] ; do
if [ "$COUNT" -lt "300" ] ; then
COUNT=$((COUNT+1))
sleep 1
continue;
fi
COUNT=0
...
done
Giving to the $COUNT a big value from start permits an initial execution of the loop, then it will do nothing (for 300 seconds / 5 minutes) other than processing the loop with sleeping 1 second each time.
Last edited by LuckyCyborg; 04-26-2021 at 03:09 AM.
I wish you would stop mentioning in every post the systemd concept "user target". We do not have systemd and I'd like to keep the terminology out of the distro.
I wish you would stop mentioning in every post the systemd concept "user target". We do not have systemd and I'd like to keep the terminology out of the distro.
Okay, but how we should name this kind of programs like the one made by OP, which is designed to run in background and to be started on user login (for every user reaching the graphics desktop), then being stopped on user logout?
In fact, someone can just add an unit file and package it for openSUSE as well. Or Kubuntu.
Honestly, I believe we should be proud that we are The First non-systemd distribution having a consistent way to handle this kind of programs.
Last edited by LuckyCyborg; 04-26-2021 at 03:33 AM.
Okay, but how we should name this kind of programs like the one made by OP, which is designed to run in background and to be started on user login (for every user reaching the graphics desktop), then being stopped on user logout?
In desktop land that's just called session management. Nothing new or magical. Has worked for 10s of years without requiring systemd.
The fact is that pipewire is badly written so that it only works properly with systemd... and a separate daemon application had to be found for Slackware to make pipewire work with regular graphical session management.
With all respect, I do not think that this kind of programs is connected with the graphical session management only.
For example, I use this daemon supervisor to manage a VPN client, with a command put on ~/.profile and another on a XDG autostart file, then no matter if I login on Plasma5 from SDDM or in the Linux console, the VPN is automatically started and in logout it's automatically stopped.
How about to name them just "user daemons" or "user services" if the "user target daemons" naming is questionable?
Last edited by ZhaoLin1457; 04-26-2021 at 04:38 AM.
BTW, WHY you ship that file README when you have README.md too?
because I had checked the box "create the readme.md" at the initialization of the repo
and I also have the file README in the directory I uploaded
I didn't pay attention to that
I'll clean up later
because I had checked the box "create the readme.md" at the initialization of the repo
and I also have the file README in the directory I uploaded
I didn't pay attention to that
I'll clean up later
For a GIT repo like yours, I suggest you to keep the README.md
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.