I have attached a *nix script which will restart any process that it does
not find active when it is run.  It will also send an email alert stating
what wasn't running and that it tried to restart it.  I have mine set to run
via CRON every 5 min.

You may need to change paths according to your system.  I have no idea if it
will port to a non-linux os such as BSD.  The notable lines are the email
alert lines and the last lines, which specify the process to look for, and
what to execute if it is not found running.

For instance:
checkproc assp.pl "/etc/init.d/assp start"

Checks to see if a process called "assp.pl" is there.  If it is not, it runs
my assp start script.  As long as the account that cron runs processes under
can start ASSP, you'll be set.


Hope that helps.

Paul K. Dickson
Systems Administrator
Interagency Information Technologies
Frederick County Government
Frederick, MD 21701
pdick...@frederickcountymd.gov
301-600-2399/x12399



> From: Mark Edwards <medwa...@thecjm.org>
> Reply-To: For Users of ASSP <assp-user@lists.sourceforge.net>
> Date: Tue, 8 Jun 2010 12:23:02 -0700
> To: For Users of ASSP <assp-user@lists.sourceforge.net>
> Subject: [Assp-user] Can ASSP restart if run as unprivileged user?
> 
> I am trying to configure ASSP to be able to restart itself.  Running on Ubuntu
> 10.4, I have ASSP set to Run ASSP as a Daemon, and the user is unprivileged
> (not root).  It seems that in this configuration ASSP cannot start itself up,
> although it can shut itself down.
> 
> I've tried variations on the standard command to start ASSP:
> 
> perl /usr/share/assp/assp.pl 2>&1 > /dev/null &
> 
> Is this just not possible?  Does ASSP need to be running as root to be able to
> restart itself?
>  
> --
> Mark Edwards
> Audiovisual Coordinator & IT Assistant
> Contemporary Jewish Museum
> 736 Mission Street
> San Francisco, CA  94103
>  
> direct line: 415.655.7802
> fax: 415.655.7815
> 
> 
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Assp-user mailing list
> Assp-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/assp-user

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to