public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: chrubis@suse.cz
To: Peng Haitao <penght@cn.fujitsu.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] cron02: Use lib to restart crond service
Date: Tue, 9 Jul 2013 13:37:32 +0200	[thread overview]
Message-ID: <20130709113732.GC30721@rei> (raw)
In-Reply-To: <1373361927-18695-1-git-send-email-penght@cn.fujitsu.com>

Hi!
> +# Check to see if cron or crond exists
> +CROND_DAEMON=""
> +if command -v crond >/dev/null 2>&1; then
> +	CROND_DAEMON="crond"
> +elif command -v cron >/dev/null 2>&1; then
> +	CROND_DAEMON="cron"
> +fi

This one is not going to work for Gentoo where you can install different
cron daemons and the init scripts are named accordingly to the package
names...

However the previous code did the same and this is a good cleanup so I'm
fine with the change.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2013-07-09 11:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-09  9:25 [LTP] [PATCH] cron02: Use lib to restart crond service Peng Haitao
2013-07-09 11:37 ` chrubis [this message]
2013-07-10  1:40 ` Wanlong Gao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130709113732.GC30721@rei \
    --to=chrubis@suse.cz \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=penght@cn.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox