LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
LinkBack Search this Thread
Old 09-18-2012, 01:39 PM   #1
Brandon9000
Member
 
Registered: Apr 2012
Location: Florida
Distribution: Many
Posts: 111

Rep: Reputation: Disabled
Systemd


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.
 
Old 09-18-2012, 01:48 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,857
Blog Entries: 2

Rep: Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796
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

Last edited by TobiSGD; 09-18-2012 at 01:50 PM.
 
Old 09-18-2012, 02:21 PM   #3
Brandon9000
Member
 
Registered: Apr 2012
Location: Florida
Distribution: Many
Posts: 111

Original Poster
Rep: Reputation: Disabled
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?
 
Old 09-18-2012, 02:45 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,857
Blog Entries: 2

Rep: Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796Reputation: 3796
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] slackware and systemd fl0 Slackware 512 08-29-2012 11:07 AM
slackware and systemd (OT) eloi Slackware 44 08-24-2012 04:36 PM
rc.local systemd guna_pmk Linux - Desktop 4 06-15-2012 03:05 AM
Systemd custangro Fedora 2 08-01-2011 07:54 AM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM


All times are GMT -5. The time now is 02:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration