Skip to content

Python utilities running as linux services in the background as daemons

Notifications You must be signed in to change notification settings

derekawilson72/pythonLinuxService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

pythonLinuxService

Python utilities running as linux services in the background as daemons

daemonApp

  1. start at shell with ./daemonApp.py start -- this will echo script every 10 seconds
  2. stop with ./daemonApp.py stop
  3. view the status with ./daemonApp.py status -- continuing with loop x=13 sample python daemon

###remote in to python console /opt/anaconda/bin/pyrasite-shell PID

app.name
'sample python daemon'
app.x   ##see this value increment
8
app.keepLooping
True
app.keepLooping=False  ##This will end the infinite loop at the next interval

##daemonApp4IPython

  1. start at shell with ./daemonApp4IPython.py start --this will echo script every 10 seconds
  2. stop with ./daemonApp4IPython.py stop
  3. view the status with ./daemonApp4IPython.py status

###remote in to ipython console

/opt/anaconda/bin/ipython console --existing kernel-3358.json

####access self variable

self.name
'sample python daemon'
self.x   ##see this value increment
8
self.keepLooping
True
self.keepLooping=False  ##This will end the infinite loop at the next interval

About

Python utilities running as linux services in the background as daemons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages