[web2py] Re: Scheduler as a service RHEL 7

2016-03-19 Thread Michael M
Sorry Dave, I know how that goes :) If you find a more elegant solution. I'm open. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this me

[web2py] Re: Scheduler as a service RHEL 7

2016-03-15 Thread Dave S
On Tuesday, March 15, 2016 at 6:49:44 PM UTC-7, Michael M wrote: > > So some googling later for "Persistant Python script Rhel7 service" > I changed the service to the following and now the service will run. > > Thank-you Dave for getting me back to thinking about writing the service > correctly

[web2py] Re: Scheduler as a service RHEL 7

2016-03-15 Thread Michael M
So some googling later for "Persistant Python script Rhel7 service" I changed the service to the following and now the service will run. - [Unit] Description=Web2py Scheduler service [Service] ExecStart=/usr/bin/python /opt/www-data/web2py/web2py.py -K networktools,networktools,netw

[web2py] Re: Scheduler as a service RHEL 7

2016-03-15 Thread Michael M
I read though that a ton of times but I believe RHEL 7 retired that method in /etc/init/ and conf files and moved to systemd and services. Ill try the sudo in ExecStart. And report back. On Tuesday, March 15, 2016 at 3:36:30 PM UTC-7, Dave S wrote: > > On Tuesday, March 15, 2016 at 2:35:40 PM

[web2py] Re: Scheduler as a service RHEL 7

2016-03-15 Thread Dave S
On Tuesday, March 15, 2016 at 2:35:40 PM UTC-7, Michael M wrote: > > I'm not stuck on getting it running as a Service. > > Just getting it so it runs when the server is power cycled or otherwise. > Insuring that the scheduler is running so it can do DB updates of > flat-files that get dumped o

[web2py] Re: Scheduler as a service RHEL 7

2016-03-15 Thread Michael M
I'm not stuck on getting it running as a Service. Just getting it so it runs when the server is power cycled or otherwise. Insuring that the scheduler is running so it can do DB updates of flat-files that get dumped on the box daily. On Sunday, March 13, 2016 at 7:32:47 PM UTC-7, Michael M w

[web2py] Re: Scheduler as a service RHEL 7

2016-03-13 Thread Michael M
When I take off the '&' at the end of the command I get the following message: # systemctl restart web2py-scheduler.service Job for web2py-scheduler.service failed because a fatal signal was delivered to the control process. See "systemctl status web2py-scheduler.service" and "journalctl -xe"

[web2py] Re: Scheduler as a service RHEL 7

2016-03-13 Thread Michael M
[root@server~]# systemctl status web2py-scheduler.service -l ● web2py-scheduler.service - Web2py Scheduler service Loaded: loaded (/etc/systemd/system/web2py-scheduler.service; enabled; vendor preset: disabled) Active: activating (start) since Sun 2016-03-13 19:09:14 PDT; 38s ago Main PID: