Daemons /etc/rc.conf

This forum is for all other ARMv5 devices

Daemons /etc/rc.conf

Postby Schart » Wed Oct 03, 2012 3:05 am

Here is my current Daemons list:

DAEMONS=(set-oxnas-mac !hwclock syslog-ng network netfs crond sshd openntpd samba)

Are there any I can remove that are not needed (seems like there is no !hwclock on the pogoplug for example)

Is it ok to add SABnzbd, Sick Beard, Couchpotato, and Headphones to this list so they all start on boot?

Thanks!
Schart
 
Posts: 3
Joined: Wed Oct 03, 2012 3:02 am

Re: Daemons /etc/rc.conf

Postby slycat » Wed Oct 03, 2012 5:57 am

Is there a reason you want to chop down your daemons list? TBH, the devs put each of those in the list so I would assume they should be there indefinitely.

I don't see why you couldn't add those to the list. First make sure they can start and run properly with /etc/rc.d/<app name> start. If no fails, add them to the daemons list. If there are any errors from that, just add the /etc/rc.d/<app name> start to your /etc/rc.local.

Heads up: this may change if you make the switch to systemd (BUT DON'T DO IT YET! Wait for WarheadsSE to give the all-clear).
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: Daemons /etc/rc.conf

Postby Schart » Wed Oct 03, 2012 10:53 am

Perfect, thanks! I just wasn't sure if it would affect the system in anyway. I was worried because when I got my Plug yesterday upon first install after Samaba and editing this file, I got the fast blinking led on boot. It took me three hours to get everything working again. To be fair I think I put Samaba outside the end parenthesis. Either that or I did Pacman and updated the system and that broke it.

I have all those apps installed/configured and they boot without error. So I will add them later to Daemons later today. Would there be any kind of advantage to put them, in /etc/rc.local instead?
Schart
 
Posts: 3
Joined: Wed Oct 03, 2012 3:02 am

Re: Daemons /etc/rc.conf

Postby Socaltom » Wed Oct 03, 2012 4:44 pm

$this->bbcode_second_pass_quote('Schart', 'H')ere is my current Daemons list:

DAEMONS=(set-oxnas-mac !hwclock syslog-ng network netfs crond sshd openntpd samba)

Are there any I can remove that are not needed (seems like there is no !hwclock on the pogoplug for example)

Is it ok to add SABnzbd, Sick Beard, Couchpotato, and Headphones to this list so they all start on boot?

Thanks!


I would be very cautious about what you remove, prepare a USB drive to boot from in case you remove something you need. Deleting the wrong thing can make the plug unreachable.
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Daemons /etc/rc.conf

Postby WarheadsSE » Wed Oct 03, 2012 4:46 pm

Do not remove set-oxnas-mac, if you like having LED & identical MAC. This may be alterable in the future however, as a udev rule can be used for the MAC setting on eth0, just not as magically as the /usr/local/mac_addr
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Daemons /etc/rc.conf

Postby slycat » Wed Oct 03, 2012 7:56 pm

$this->bbcode_second_pass_quote('Schart', 'W')ould there be any kind of advantage to put them, in /etc/rc.local instead?

I don't think so, except that the plug led goes from blinking to solid green once the boot is completed, so if you have something in rc.local, it'll happen after the regular boot sequence is done.
I added things to rc.local so that I could put a pause (sleep #) in between app starts so there's no chance of it getting overwhelmed. For example, my Transmission has 1300+ active torrents which chew up memory at start up, so rather than having so much at one time, rc.local waits a few seconds before starting another one.

Also, rc.local is what you would use to do any non-daemon at-boot commands, so things like starting something in screen or other startup scripts would run from there.
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: Daemons /etc/rc.conf

Postby Schart » Thu Oct 04, 2012 4:36 pm

Thanks for the replies everyone! I added those to the Daemons and everything is good to go.
Schart
 
Posts: 3
Joined: Wed Oct 03, 2012 3:02 am


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 4 guests