Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
All of the work I've done on services has utilized the initd system. I have been trying to understand the systemd method,but after Googling for several hours, there are still some basic things I don't understand. For example, suppose that bluetooth is supposed to come up when the machine boots. How does systemd find out that bluetooth is supposed to start? I've read a lot during the past few hours about .target files and it doesn't help me understand this. In the initd system, it would know because there was a script beginning with the letter "S" in the rcn.d directory of the current runlevel.
You just put a symlink to the bluetooth daemons .service file into the .want-directory for the .target you want to start it in and reload the configuration.
Have a look here: http://www.freedesktop.org/wiki/Soft...AskedQuestions
Thanks. I Googled this for about three hours without any satisfaction.
Let me ask a related question. In the SysV init system, if some maintenance script saw that a service was down and wanted to know whether it ought to be restarted, it could check the current runlevel, and then look in the rc.d directory for that runlevel to see if the service had an "S" script or a "K" script. If it had an "S" script, it would mean that the service ought to be up in the present runlevel and should be restarted.
What is the parallel for systemd? Let's say that I am a maintenance script. I wake up and I see that bluetooth is down. How do I know whether or not it is supposed to be up? In the initd system, first I would have to check what runlevel I was running in. In some runlevels it should be up and in some it should be down. How does this work for systemd?
With systemd you don't have to bother about that, it is doing things like that automatically.
At least, if I am not mistaken, I never used systemd, but became curios now and are at this time doing an install of Arch to have a look at systemd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.