Re: Creating a user defined service in Cent os

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, May 24, 2010 at 9:59 AM, Chaitanya Yanamadala
<dr.virus.india@xxxxxxxxx> wrote:
> hai
>  i have a perl script which will automatically check for the existing files
> and then ftp them to a server, this one runs in a loop until i kill it, now
> what i wants is i want to make this as a service so that it can keep on
> running until i kill the service. so does any one have an idea how to do
> this??
>
> Chaitanya


You can write a start/stop script and put in in /etc/init.d, or you
can convert it to run from cron and put it in the user's crontab
(instead of using an infinite loop and sleeping in the script, remove
the loop & sleep and have cron run the script however often you need
to check for files).  Cron would be the preferred way here.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux