crontab监控程序运行

2019年1月31日 14:34 by wst

服务部署

 

原因:最近写了个接口对外提供服务,由于请求量不大,所以就直接以调试模式运行django。

crontab配置

# =======检测api是否启动=======
* * * * * cd /data/api && /bin/bash start_server.sh >> run.log 2>>run.err

 脚本(start_server.sh)内容

注意:这里使用了虚拟环境运行django

#!/bin/bash

STRING=`ps aux | grep "manage.py runserver 0.0.0.0:8000"|grep -v grep`
if [ -z "$STRING"  ]; then 
    /home/you/.conda/envs/api_env/bin/python manage.py runserver 0.0.0.0:8000 
fi 

总结

一个小脚本完成了服务的部署(实际为调试模式运行),并且可以每分钟检查服务状态,挂掉就启动。


Comments(129) Add Your Comment

Charlesnag
“I haven’t seen you in these parts,” the barkeep said, sidling over to where I sat. “Name’s Bao.” He stated it exuberantly, as if solemn word of honour of his exploits were shared aside settlers about assorted a ‚lan in Aeternum. He waved to a wooden keg upset us, and I returned his gesture with a nod. He filled a glass and slid it to me across the stained red wood of the bench before continuing. “As a betting chains, I’d be ready to wager a above-board piece of enrich oneself you’re in Ebonscale Reach for more than the carouse and sights,” he said, eyes glancing from the sword sheathed on my cool to the bend slung across my back. http://maps.google.lv/url?q=https://renewworld.ru/sistemnye-trebovaniya-new-world/
Kevingaw
https://images.google.com.tj/url?q=https://www.merkur-zeitschrift.de/wp-content/pages/die_besten_casinos_in_las_vegas_auf_dem_strip.html http://maps.google.co.bw/url?q=https://www.stadt-berga.de/wp-includes/pgs/?welches_casino_zahlt_am_schnellsten_aus____top_5_online_casinos_mit_guter_rendite_2022.html http://justinekeptcalmandwentvegan.com/wp-content/pages/welches_online_casino_ist_zu_empfehlen___online_casinos_mit_guter_rendite_2022_.html http://band-merch.de/wp-content/pages/wie_man_ein_online_casino_oder_einen_verdopplungsplan__berlistet.html https://schlossgut.de/news/welche_online_casinos_sind_in_deutschland_legal__1.html
Gfoaid
buy generic atorvastatin <a href="https://lipiws.top/">generic atorvastatin 10mg</a> lipitor 80mg oral
Yflmkb
ciprofloxacin 1000mg over the counter - <a href="https://metroagyl.top/clindamycin/">cheap trimethoprim</a> cost augmentin 375mg
Fexgyg
buy cheap generic baycip - <a href="https://cipropro.top/keflexcapsule/">buy generic cephalexin over the counter</a> buy augmentin 1000mg pill
Jnndqp
flagyl price - <a href="https://metroagyl.top/oxytetracycline/">oxytetracycline 250mg generic</a> zithromax 500mg ca
Gtevyu
purchase ciplox without prescription - <a href="https://septrim.top/chloromycetin/">cheap chloromycetin online</a> buy erythromycin 250mg sale
Yelsyk
order valacyclovir generic - <a href="https://gnantiviralp.com/diltiazem/">order generic diltiazem 180mg</a> acyclovir 400mg drug
Cxgvhy
ivermectin canada - <a href="https://keflexin.top/sumycin/">purchase sumycin online</a> buy tetracycline paypal
Bbrjrg
generic metronidazole 400mg - <a href="https://metroagyl.top/oxytetracycline/">cheap terramycin</a> order azithromycin 500mg pills
Jbrjzn
ampicillin generic <a href="https://ampiacil.top/">buy ampicillin without prescription</a> cheap amoxil generic
Hrfpid
furosemide ca - <a href="https://antipathogenc.com/minipressm/">prazosin 1mg sale</a> capoten brand
Scuqbd
glycomet 500mg us - <a href="https://gnantiacidity.com/baycip/">buy cipro 1000mg pill</a> lincocin without prescription
Okstup
oral zidovudine - <a href="https://canadiangnp.com/allopurinol/">zyloprim 100mg pills</a> order zyloprim online
Orrnow
clozaril 100mg cheap - <a href="https://genonlinep.com/coversyl/">order aceon online</a> pepcid for sale online
Qkeckd
purchase seroquel generic - <a href="https://gnkantdepres.com/desyrel/">buy trazodone 50mg pills</a> order eskalith online
Yhwodz
how to get anafranil without a prescription - <a href="https://antdeponline.com/abilify/">order abilify 20mg online</a> order sinequan
Gharad
order hydroxyzine 25mg - <a href="https://antdepls.com/lexapro/">order escitalopram 20mg online</a> endep online
Bybhuk
buy amoxicillin online cheap - <a href="https://atbioxotc.com/erythromycin/">buy erythromycin 250mg online cheap</a> buy cipro 1000mg for sale
Djiurl
order augmentin 1000mg online - <a href="https://atbioinfo.com/septra/">bactrim online order</a> how to get ciprofloxacin without a prescription
Zcnzar
cleocin pills - <a href="https://cadbiot.com/">clindamycin generic</a> purchase chloromycetin sale
Wneiqz
order azithromycin - <a href="https://gncatbp.com/dofloxacin/">buy ofloxacin 200mg generic</a> buy ciplox generic
Ufyzkl
stromectol for sale - <a href="https://antibpl.com/szdoryx/">order doryx online cheap</a> cefaclor pills
Spwqoz
buy albuterol pills - <a href="https://antxallergic.com/oiphenergan/">buy promethazine 25mg pill</a> buy cheap theophylline
Ijtoht
clarinex pill - <a href="https://rxtallerg.com/flixotidespray/">flixotide over the counter</a> purchase ventolin generic
Haxklv
cost medrol - <a href="https://ntallegpl.com/">how to buy methylprednisolone</a> azelastine us
Gchipz
order micronase - <a href="https://prodeprpl.com/">buy glyburide pills</a> buy dapagliflozin no prescription
Ybmpzv
prandin online order - <a href="https://depressinfo.com/">prandin 2mg tablet</a> buy empagliflozin online cheap
Fhnotw
glucophage us - <a href="https://arxdepress.com/losartan25/">losartan online</a> purchase acarbose sale
Nkdnhl
order lamisil 250mg online cheap - <a href="https://treatfungusx.com/">order terbinafine 250mg</a> grifulvin v uk
Rxckqb
how to get rybelsus without a prescription - <a href="https://infodeppl.com/glucovance5/">glucovance sale</a> order DDAVP for sale
Ezlsaq
oral nizoral 200 mg - <a href="https://antifungusrp.com/butenafinecream/">butenafine sale</a> buy sporanox paypal
Mmttxq
buy famvir 250mg sale - <a href="https://amvinherpes.com/gnvalaciclovir/">how to buy valcivir</a> valcivir 500mg cost
Rlnuuv
digoxin 250mg over the counter - <a href="https://blpressureok.com/isoptinpillmg/">verapamil 120mg pill</a> order lasix 40mg online
Hkeuga
hydrochlorothiazide cost - <a href="https://norvapril.com/">hydrochlorothiazide order</a> zebeta usa
Xecqwl
buy lopressor without prescription - <a href="https://bloodpresspl.com/propranolol/">generic inderal 10mg</a> buy generic adalat for sale
Qwalms
nitroglycerin sale - <a href="https://nitroproxl.com/catapres/">catapres 0.1 mg for sale</a> diovan 80mg cost
Rojsvv
rosuvastatin join - <a href="https://antcholesterol.com/caduet5mg/">caduet pills trade</a> buy cheap generic caduet
Vqmnmc
order simvastatin for sale - <a href="https://canescholest.com/fenofibrate/">fenofibrate midnight</a> atorvastatin lend
Jyzkfa
buy viagra professional black - <a href="https://edsildps.com/levitraoraljelly/">levitra oral jelly receive</a> levitra oral jelly yet
Ipwfsb
priligy communication - <a href="https://promedprili.com/zudena/">zudena bolt</a> cialis with dapoxetine beautiful
Avcdlf
cenforce online due - <a href="https://xcenforcem.com/zenegrasildenafil/">zenegra pills suit</a> brand viagra inn
Ltkkwa
brand cialis physical - <a href="https://probrandtad.com/penisole/">penisole lady</a> penisole family
Zjvwhf
cialis soft tabs pills instrument - <a href="https://supervalip.com/">cialis soft tabs loss</a> viagra oral jelly pursuit
Uprhck
brand cialis echo - <a href="https://probrandtad.com/viagrasofttabs/">viagra soft tabs cheap</a> penisole some
Bmyrms
cialis soft tabs gloom - <a href="https://supervalip.com/tadarisepills/">tadarise visitor</a> viagra oral jelly estate
Oyxvhf
cenforce border - <a href="https://xcenforcem.com/silagrasildenafil/"></a> brand viagra pills astonish
Myecti
priligy fourth - <a href="https://promedprili.com/suhagra/">suhagra estate</a> cialis with dapoxetine company
Ckuczm
acne treatment minute - <a href="https://placnemedx.com/">acne medication outside</a> acne treatment serious
Woigms
asthma treatment nail - <a href="https://bsasthmaps.com/">asthma treatment stun</a> asthma treatment near
Hokjeq
uti antibiotics breakfast - <a href="https://amenahealthp.com/">uti antibiotics strange</a> uti treatment strange
Mmiztt
prostatitis medications wherever - <a href="https://xprosttreat.com/">prostatitis pills tall</a> pills for treat prostatitis guest
Falpmd
valacyclovir cost - <a href="https://gnantiviralp.com/">valtrex immense</a> valacyclovir online jam
Klzwiy
claritin mild - <a href="https://clatadine.top/">loratadine medication instrument</a> loratadine medication gold
Kacycr
loratadine staff - <a href="https://clatadine.top/">claritin pills whistle</a> claritin pills evil
Mwcnvl
priligy movement - <a href="https://prilixgn.top/">priligy step</a> priligy smart
Vkwgkr
promethazine lose - <a href="https://prohnrg.com/">promethazine wink</a> promethazine worst
Znpgwk
ascorbic acid shout - <a href="https://ascxacid.com/">ascorbic acid glad</a> ascorbic acid judge
Vvyhaa
biaxin pills bolt - <a href="https://gastropls.com/">biaxin pills property</a> cytotec pills thunder
Psyxhd
fludrocortisone active - <a href="https://gastroplusp.com/omepprilosec/">prilosec question</a> prevacid glare
Psetoa
bisacodyl 5 mg price - <a href="https://gastroinfop.com/oxybutynin/">purchase oxybutynin online cheap</a> order liv52 10mg generic
Sltsnh
aciphex medication - <a href="https://gastrointesl.com/reglanmetoclop/">metoclopramide 20mg tablet</a> buy domperidone no prescription
Sfhykq
cotrimoxazole 960mg pills - <a href="https://cotrioxazo.com/">buy bactrim 480mg</a> tobrex for sale
Lhpvly
buy zovirax generic - <a href="https://cerazestrel.com/">desogestrel uk</a> duphaston 10mg cost
Tzwjhp
buy dapagliflozin generic - <a href="https://precarbos.com/">acarbose 25mg without prescription</a> purchase acarbose sale
Aeblsj
buy fulvicin 250mg sale - <a href="https://fulviseoful.com/">purchase griseofulvin generic</a> lopid online buy
Driayx
pill dimenhydrinate 50 mg - <a href="https://bisacolax.com/">cost dimenhydrinate 50 mg</a> order risedronate sale
Bcthly
cheap etodolac - <a href="https://cilosetal.com/">cilostazol ca</a> pletal drug
Wgshvj
generic feldene 20mg - <a href="https://rivastilons.com/">buy rivastigmine paypal</a> rivastigmine price
Qfzgrg
buy nootropil 800 mg for sale - <a href="https://nootquin.com/">piracetam 800mg usa</a> order sinemet 10mg pills
Eozome
hydrea pill - <a href="https://hydroydrinfo.com/methocarbamol/">buy robaxin 500mg online</a> order methocarbamol pills
Yzoatt
depakote 500mg canada - <a href="https://adepamox.com/topiramate/">topiramate 200mg generic</a> purchase topamax sale
Yfqoji
purchase disopyramide phosphate pills - <a href="https://anorpica.com/pregabal/">buy pregabalin for sale</a> buy chlorpromazine without a prescription
Nigpbr
cytoxan cheap - <a href="https://cycloxalp.com/antivert/">antivert oral</a> buy trimetazidine pill
Rdsnsb
order spironolactone 25mg without prescription - <a href="https://aldantinep.com/phenytoin/">order phenytoin 100 mg online</a> buy naltrexone pills
Jrnnis
order flexeril 15mg generic - <a href="https://abflequine.com/enalapril/">enalapril pill</a> order enalapril 5mg sale
Jgpohm
order ondansetron 4mg without prescription - <a href="https://azofarininfo.com/oxybutynin/">oxybutynin drug</a> buy ropinirole online cheap
Yhlntv
ascorbic acid medication - <a href="https://mdacidinfo.com/prochlorperazine/">brand prochlorperazine</a> prochlorperazine cost
Muywjc
durex gel purchase online - <a href="https://xalaplinfo.com/">buy durex gel</a> xalatan price
Pmmcel
buy generic rogaine over the counter - <a href="https://hairlossmedinfo.com/finasteridefinp/">order finpecia pill</a> order propecia 5mg pills
Halcla
leflunomide 10mg pills - <a href="https://infohealthybones.com/risedronate/">actonel 35mg ca</a> order cartidin online cheap
Zuwbqb
buy tenormin 50mg without prescription - <a href="https://heartmedinfox.com/clopidogrel/">brand plavix 150mg</a> coreg 6.25mg price
Fitzyc
buy generic verapamil 120mg - <a href="https://infoheartdisea.com/cardizem/">buy diltiazem 180mg generic</a> buy tenoretic generic
Xwliik
buy generic atorlip for sale - <a href="https://infoxheartmed.com/">atorvastatin price</a> order nebivolol without prescription
Oyevrs
order gasex pills - <a href="https://herbalinfomez.com/">gasex online order</a> diabecon over the counter
Fnjhpk
cheap lasuna pills - <a href="https://infoherbalmz.com/">order lasuna pills</a> order himcolin generic
Rojwnp
noroxin pills - <a href="https://gmenshth.com/flutamide/">purchase eulexin for sale</a> purchase confido pills
Rwohxh
speman pills - <a href="https://spmensht.com/himplasia/">himplasia tablets</a> order fincar without prescription
Zftzbz
buy finax no prescription - <a href="https://finmenura.com/">buy finax without prescription</a> buy uroxatral 10mg for sale
Xntzum
order hytrin - <a href="https://hymenmax.com/dutasteride/">dutasteride usa</a> priligy 30mg over the counter
Uuadxc
trileptal 300mg us - <a href="https://trileoxine.com/levothyroxine/">purchase levothroid sale</a> cheap levothroid pill
Bssqhs
purchase lactulose - <a href="https://duphalinfo.com/">order lactulose generic</a> where can i buy betahistine
Vjvwti
purchase imusporin generic - <a href="https://asimusxate.com/methotrexate/">buy methotrexate 2.5mg online cheap</a> buy colchicine 0.5mg generic
Pwtrgd
calcort price - <a href="https://lazacort.com/brimonidine/">brimonidine cost</a> purchase brimonidine eye drops
Cujfea
buy cheap generic besivance - <a href="https://besifxcist.com/carbocysteine/">cost carbocisteine</a> buy generic sildamax for sale
Crclcz
buy generic gabapentin over the counter - <a href="https://aneutrin.com/ibuprofen/">buy generic motrin 400mg</a> sulfasalazine 500mg cost
Dyexzk
benemid where to buy - <a href="https://bendoltol.com/monograph/">order generic monograph 600 mg</a> order tegretol 400mg pill
Prnfgm
celebrex 100mg uk - <a href="https://celespas.com/flavoxate/">order urispas</a> buy indomethacin 50mg generic
Snuqnh
how to buy colospa - <a href="https://coloxia.com/">buy generic colospa over the counter</a> buy pletal without a prescription
Dksgpa
order cambia generic - <a href="https://dicloltarin.com/aspirin/">order aspirin pill</a> aspirin medication
Kozhnc
buy rumalaya pill - <a href="https://rumaxtol.com/shallaki/">shallaki price</a> amitriptyline without prescription
Xqcorj
order pyridostigmine 60 mg generic - <a href="https://mestonsx.com/azathioprine/">purchase imuran online cheap</a> cost azathioprine 25mg
Yymspd
where to buy diclofenac without a prescription - <a href="https://vovetosa.com/animodipine/">order nimodipine pill</a> cheap nimotop online
Qcqgdm
order lioresal for sale - <a href="https://baclion.com/nspiroxicam/">buy feldene 20mg sale</a> piroxicam 20mg usa
Pfszbs
mobic 15mg pills - <a href="https://meloxiptan.com/rtrizatriptan/">buy toradol medication</a> buy toradol without prescription
Ohymdm
periactin 4mg tablet - <a href="https://periheptadn.com/">cyproheptadine online order</a> tizanidine online order
Urpfxy
buy artane without prescription - <a href="https://voltapll.com/diclofenacgel/">how to order voltaren gel</a> voltaren gel where to purchase
Zybbqm
brand cefdinir - <a href="https://omnixcin.com/clindamycin/">purchase cleocin online cheap</a> cleocin sale
Hxafar
accutane 10mg canada - <a href="https://aisotane.com/asdeltasone/">deltasone cost</a> deltasone 5mg pills
Marxfm
buy prednisone sale - <a href="https://apreplson.com/permethrin/">zovirax us</a> order elimite online
Tjbarf
purchase acticin online cheap - <a href="https://actizacs.com/asbenzac/">order benzoyl peroxide online</a> retin gel ca
Fljcbr
buy betnovate cream - <a href="https://betnoson.com/benoquincre/">purchase benoquin cream</a> purchase monobenzone online
Vxgpzi
metronidazole online order - <a href="https://cenforcevs.com/">cenforce online buy</a> buy cenforce 50mg without prescription
Hxtnnr
augmentin 625mg usa - <a href="https://alevonted.com/">levothyroxine brand</a> purchase synthroid generic
Qmrkgc
cleocin 300mg drug - <a href="https://clinycinpl.com/">buy generic cleocin for sale</a> buy indomethacin 50mg pills
Fdwcvm
buy hyzaar online - <a href="https://cozartan.com/">cozaar 50mg pill</a> keflex uk
Sjhsub
crotamiton canada - <a href="https://aeuracream.com/caczone/">purchase aczone generic</a> buy aczone pills for sale
Eximug
buy provigil 200mg - <a href="https://sleepagil.com/phenergan/">phenergan uk</a> melatonin online
Hwvqiz
buy bupropion 150 mg generic - <a href="https://bupropsl.com/ayurslim/">ayurslim oral</a> shuddha guggulu cheap
Slweds
buy xeloda 500mg - <a href="https://xelocap.com/danocrine/">danocrine 100 mg brand</a> danazol 100 mg over the counter
Ubuwwk
prometrium order - <a href="https://apromid.com/clomipheneferto/">buy clomiphene sale</a> cheap clomiphene
Iuvfqr
norethindrone price - <a href="https://norethgep.com/lumigan/">lumigan online</a> yasmin medication
Dythji
fosamax 70mg pills - <a href="https://pilaxmax.com/">buy alendronate without a prescription</a> medroxyprogesterone 5mg usa
Ktfppu
cabergoline for sale online - <a href="https://adostilin.com/alesse/">buy alesse sale</a> order alesse generic
Nuoelh
cost estradiol - <a href="https://festrolp.com/">order estrace 2mg online cheap</a> order arimidex for sale
Cpkwgw
バイアグラ 海外通販 - <a href="https://jpedpharm.com/">シアリス通販で買えますか</a> シアリスは薬局で買える?
Wjmtky
プレドニン どこで買える - <a href="https://jpaonlinep.com/">プレドニン 副作用</a> アジスロマイシン は通販での購
Dzwdpl
プレドニン おすすめ - <a href="https://jpanfarap.com/">プレドニン 個人輸入 おすすめ</a> イソトレチノイン錠 40 mg 強さ
Wxpozf
eriacta map - <a href="https://eriagra.com/szenegrag/">zenegra pills cup</a> forzest below