You are not logged in.

#1 2011-07-23 01:22:08

Pooh-Bah
Member
Registered: 2011-07-13
Posts: 47

Can I disable syslog-ng and cron daemons?

I really don't use two this daemons - syslog-ng and cron. Can I remove this from /etc/rf.conf?

I do not understand system logs and no needs 24/7 to read logs.
Also, if I need to read system logs, I just run it temporary...

Also I dont use cron. For archlinux cron is critical daemon? If not - can I disable? smile

Offline

#2 2011-07-23 01:26:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can I disable syslog-ng and cron daemons?

What if your system crashed and you don't have logs to tell you what happened? Do you reinstall or pull out a crystal ball out of the closet? ;-)
Many apps use cron to perform updates and maintenance.

Those daemons don't clutter the system and don't eat up gobs of resources so why do you want to remove something you don't understand?

Offline

#3 2011-07-23 01:31:51

Pooh-Bah
Member
Registered: 2011-07-13
Posts: 47

Re: Can I disable syslog-ng and cron daemons?

About syslog-ng: I long time use Windows and never use anything logging (just don't know about it). If my system crashed or computer will be broken - I tested my hardware. I use my computer as desktop: music, video, chats, web-surfing. Thats all.

About cron install apps: Xorg (minimal), firefox, ncmpcpp, irssi, rtorrent, mplayer. Thats all. smile

Thanks for reply.

Offline

#4 2011-07-23 01:37:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can I disable syslog-ng and cron daemons?

Do you backup your data? That's one very common application of cron.
I see that shadow uses cron to check the integrity of password and group files: /etc/cron.daily/shadow

Offline

#5 2011-07-23 01:46:04

Pooh-Bah
Member
Registered: 2011-07-13
Posts: 47

Re: Can I disable syslog-ng and cron daemons?

No, I did not touch cron since the installation and don't use this for backup, scripts etc.

I single user in system, do not change password or anything else.

Offline

#6 2011-07-23 01:58:03

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: Can I disable syslog-ng and cron daemons?

crond does some system maintainance that you probably want, e.g., man-db, updatedb, logrotate (necessary if you use the log facilities).  Look into /var/spool/cron/ and /etc/cron.*/ for the details.

logs are useful for tracing down problems. Providing a log when you ask for help helps greatly. But it's not essential for functionality, of course.


This silver ladybug at line 28...

Offline

#7 2011-07-23 02:14:19

Pooh-Bah
Member
Registered: 2011-07-13
Posts: 47

Re: Can I disable syslog-ng and cron daemons?

Okay, I remove syslog-ng from daemons. Now cron...

/etc/cron.d:
prune-cronstamps*

/etc/cron.daily:
logrotate*  man-db*  shadow*

/etc/cron.hourly:
adjtime*

/etc/cron.monthly:

/etc/cron.weekly:

prune-cronstamps - I think this for cron, and if I don't use cron - no need to this.
logrotate - for contol logs. syslog-ng management logs, and this disabled. logrotate is no more need?
man-db - for update man pages databases? I can do it manually when I need it, - once a year smile because not install new apps.
shadow - hm.. dont know, but I did not touch group and password files, and not change password etc.
adjtime - linux and hardware clocks - two different clocks? clock accuracy is not critical

And of course, if anything needed - I always can do it manually (like update man-db).


Added about syslog-ng: when system can crashed? Only when update.
If it critical, like kernel, - I always can use "ArchLinux Fallback" from grub menu list, yep? No problem, I think. No need to read logs.

Last edited by Pooh-Bah (2011-07-23 02:25:33)

Offline

#8 2011-07-23 02:23:16

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: Can I disable syslog-ng and cron daemons?

Pooh-Bah wrote:

logrotate - for contol logs. syslog-ng management logs, and this disabled. logrotate is no more need?

Not exactly, see /etc/logrotate.d/

But anyway, if you prefer to do all these manually, I don't see a problem.


This silver ladybug at line 28...

Offline

#9 2011-07-23 02:46:24

Pooh-Bah
Member
Registered: 2011-07-13
Posts: 47

Re: Can I disable syslog-ng and cron daemons?

# echo "rm /var/log/*.log" >> /etc/rc.local.shutdown

smile logrotate not needed?


(Edit)

/etc/rf.conf:

DAEMONS=(@alsa network)

Awesome. True minimalism wink

Last edited by Pooh-Bah (2011-07-23 02:53:32)

Offline

#10 2011-07-23 03:25:19

Pooh-Bah
Member
Registered: 2011-07-13
Posts: 47

Re: Can I disable syslog-ng and cron daemons?

Instead syslog-ng running minilogd, don't know - how to disable it? sad

Offline

#11 2011-07-23 03:33:04

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: Can I disable syslog-ng and cron daemons?

In rc.sysinit:

# start up our mini logger until syslog takes over
/sbin/minilogd

Comment it out, but I don't know if it will do any harm.


This silver ladybug at line 28...

Offline

#12 2011-07-23 03:37:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can I disable syslog-ng and cron daemons?

Pooh-Bah wrote:

Instead syslog-ng running minilogd, don't know - how to disable it? sad

I'm not sure if I understand it correctly: you want to stop minilogd from running?
Try commenting it out in /etc/rc.sysinit - but I'm not responsible for any problems this might cause.


Edit: Now you have a second opinion ;P

Last edited by karol (2011-07-23 03:38:08)

Offline

#13 2011-07-23 03:37:52

Pooh-Bah
Member
Registered: 2011-07-13
Posts: 47

Re: Can I disable syslog-ng and cron daemons?

lolilolicon, thank you.

Offline

#14 2011-07-23 10:54:02

lukaszan
Member
Registered: 2011-05-05
Posts: 117

Re: Can I disable syslog-ng and cron daemons?

Pooh-Bah wrote:

About syslog-ng: I long time use Windows and never use anything logging (just don't know about it). If my system crashed or computer will be broken - I tested my hardware. I use my computer as desktop: music, video, chats, web-surfing. Thats all.

About cron install apps: Xorg (minimal), firefox, ncmpcpp, irssi, rtorrent, mplayer. Thats all. smile

Thanks for reply.

Even windows has a logging utility. It's usefulness is questionable at best though...

Well, good luck with your 'minimal' system.

Offline

#15 2011-07-23 12:40:21

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Can I disable syslog-ng and cron daemons?

Pooh-Bah wrote:

I really don't use two this daemons - syslog-ng and cron. Can I remove this from /etc/rf.conf?

I do not understand system logs and no needs 24/7 to read logs.
Also, if I need to read system logs, I just run it temporary...

Also I dont use cron. For archlinux cron is critical daemon? If not - can I disable? smile

Why disable something that takes next to no resources and have usefull features?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#16 2011-07-23 14:42:48

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: Can I disable syslog-ng and cron daemons?

There will be the day you encounter a problem and you will be told to post /var/log/<fancylogfile>. You will have to tell them you can't because you disabled the log file daemon. They will shrug, shake their head and do something else.

Offline

#17 2011-07-23 14:42:55

Pooh-Bah
Member
Registered: 2011-07-13
Posts: 47

Re: Can I disable syslog-ng and cron daemons?

Mr.Elendig wrote:

Why disable something that takes next to no resources and have usefull features?

Like when system is clean and minimum system processes, CPU/RAM usage.
I newbie in Linux and its just experiments for the experience.

Offline

#18 2011-07-23 15:28:54

George.Harmony
Member
From: Off The Wire
Registered: 2010-04-30
Posts: 97

Re: Can I disable syslog-ng and cron daemons?

Good on ya Pooh-Bah. Its your system to do with as you please. As long as you have listened to the advice given and heeded the warnings I think you are correct in following your course of action. Linux is about experimenting and trying to do things the way you want. Sometimes we have to learn by trying. Even if the attempt ends in failure something can always be learned.

Doing what you are doing is exactly how I taught myself about the services in Windows. I turned them off and looked at what broke. If i needed it I turned it back on. If I didn't it stayed off.


Desktop:  Compiz Stand Alone w/ Cairo Dock.
Laptop:    Pekwm w/ Tint2
Jukebox:   MPD w/ cli
Gateway: Vuurmuur w/dialog

Offline

Board footer

Powered by FluxBB