[MonoDevelop] Mono and Crontab

Ryan Svihla rssvihla at gmail.com
Sun Apr 4 17:35:26 EDT 2010


The aforementioned problem of catching all events on the service I've
already posted, and I've had customer impacting issues with Microsoft's
implementation of ServiceBase in production so I'd still recommend against
this approach . So don't use it unless mono's implementation is somehow much
better. Otherwise, Separate library for logic, unit testing, etc are all
things I'd agree with and HIGHLY recommend. You could do all that and still
have problems with ServiceBase given enough time. just my 2 cents and now
I'm done.

Mark, if you want to run the console app as a service, just leverage
whatever your distro has for running processes on startup, cron is not
needed here.

Fedora uses /etc/rc.local http://www.fedorafaq.org/basics/ #6 includes an
example
OpenSuse uses /etc/init.d/boot.local  as a place to put custom startup apps
Debian can have the equivalent by
http://plope.com/Members/chrism/debian_rc_local_equiv
Ubuntu can have the equivalent by
https://help.ubuntu.com/community/RcLocalHowto

If you want full startup shutdown on the fly by calling an
"/etc/init.d/myservice" again each distro has it's own directions on how to
do this and it's all doable.

2010/4/4 "Andrés G. Aragoneses" <knocte at gmail.com>

> El 04/04/10 13:56, Mark Devgood escribió:
> >
> > I am also of the opinion that writing a Service is a last resort. Even on
> > Windows I've found them a pain to support, debug, update, etc...
> >
> > So sounds like writing this in a Console app is the way to go. Since this
>
> Why not get the best of both worlds? Implement your logic in
> SomeLibrary.dll. Then, create a console app that uses this library so
> you can test your cade easier. After, create a service that uses the
> same library for deploying it.
>
> Oh, and make sure you develop a simple logging method that calls
> Console.WriteLine and at the same time writes to the event log
> (System.Diagnostics.*) so you can debug it both from the console app and
> the service.
>
> Regards,
>
>        Andrés
>
>
> > has to be running all the time, is the best option to kick it off from
> Cron?
> > Perhaps Cron can run a little script each hour to see if the Console app
> is
> > running, and if not kick it off? I'm not quite sure how I would achieve
> > this. This is to test if the server was rebooted for whatever reason.
> After
> > all, a reminder system isn't useful if you suddenly don't get you
> reminder,
> > and you discovered that the Console app is not running anymore.
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>



-- 
Ryan Svihla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20100404/73d9db2a/attachment.html 


More information about the Monodevelop-list mailing list