c9s / typeloy

typeloy is a meteor application deployment tool written in typescript.
MIT License
25 stars 8 forks source link

Server Reboot daemons #49

Closed Testato closed 8 years ago

Testato commented 8 years ago

after a server reboot the Mongo service do not autostart.

sudo service mongo status
● mongo.service - High-performance, schema-free document-oriented database
   Loaded: loaded (/lib/systemd/system/mongo.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: https://docs.mongodb.org/manual
c9s commented 8 years ago

because your "mongod.service" was not removed?

Testato notifications@github.com 於 2016年10月13日 星期四寫道:

after a server reboot the Mongo service and the Nodejs app deployed, do not autostart. sudo service mongo status

● mongo.service - High-performance, schema-free document-oriented database Loaded: loaded (/lib/systemd/system/mongo.service; disabled; vendor preset: enabled) Active: inactive (dead) Docs: https://docs.mongodb.org/manual

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/c9s/typeloy/issues/49, or mute the thread https://github.com/notifications/unsubscribe-auth/AADGzongdsSdgoFXRr7TyXEVC8G7_SAuks5qzR7lgaJpZM4KVCPs .

Testato commented 8 years ago

no, it is removed, probably you need only Restart=always in the mongo service the systemD daemon need this for two reason: 1) autostart at reboot 2) auto restart after a crash

c9s commented 8 years ago

Restart=aways is for process level, not for reboot.

maybe you can try systemctl enable mongo ?

Testato notifications@github.com 於 2016年10月13日 星期四寫道:

no, it is removed, probably you need only Restart=always in the mongo service the systemD daemon need this for two reason: 1) autostart at reboot 2) auto restart after a crash

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/c9s/typeloy/issues/49#issuecomment-253509541, or mute the thread https://github.com/notifications/unsubscribe-auth/AADGzvAo8hvlNdVW_epHePBxJ-oiLGefks5qzi7JgaJpZM4KVCPs .

Testato commented 8 years ago

sorry, yes, you are right Restart=always if only for respawn after a crash I seen that you applied it to the meteorapp.service, why not add it also on mongo.service ? so also mongodb will restart after a crash

Testato commented 8 years ago

Solved Thanks