[SOLVED] New to ArchLinux, auto starting daemons?

Ask questions about Arch Linux ARM. Please search before making a new topic.

[SOLVED] New to ArchLinux, auto starting daemons?

Postby nellson » Thu Jul 03, 2014 4:47 am

I have googled a bit, and started finding out a bit about this systemd deal for managing daemons.. I am a Gentoo Linux user mostly, but the PogoPlug 4 looked easiest to use with Arch Linux.

I got my SMBD/NMBD all set up, and could start them with systemctl start smbd (etc) but to get them to start in a run level script.. I was seeing reference to /etc/rc.conf which I do not have to put in a "daemons" variable....

Can someone point me at the how to for this? (and how I might find how services that are started like sshd got to be that way?... grepping through /etc didn't yield any clues. :-)

Nick
Last edited by nellson on Fri Jul 18, 2014 9:13 pm, edited 1 time in total.
nellson
 
Posts: 9
Joined: Thu Jul 03, 2014 4:36 am

Re: New to ArchLinux, auto starting daemons?

Postby moonman » Thu Jul 03, 2014 5:22 am

Systemctl enable <service> will enable the service to start on boot. Archwiki is a good start to start learning about systemd, specificallu systemd section. Just google "archwiki systemd". As matter of fact you can find information of about every package, including how start and enable the service
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: New to ArchLinux, auto starting daemons?

Postby nellson » Thu Jul 03, 2014 6:13 pm

Oh perfect, so it is a function of the systemctl command... I will work with that!

[root@alarm ~]# systemctl enable smbd
ln -s '/usr/lib/systemd/system/smbd.service' '/etc/systemd/system/multi-user.target.wants/smbd.service'

Hey!! Looky here, the path and process is echoed back to me, this is great, now I have a feel for what is happening here!

Much appreciated!

Nick
nellson
 
Posts: 9
Joined: Thu Jul 03, 2014 4:36 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 3 guests