How do you configure TigerGraph to automatically start after reboot.
Right now, I am having to manually execute
and then …
gadmin start all
Is there a better way to do this? If a machine does crash wouldn’t most customers want TigerGraph to automatically restart?
@anthony.gatlin If you are not using Docker, you’ll need a systemd startup script:
It’s not delivered at the time of installation.
If you would use Docker, then in some versions autostart is included.
Since TigerGraph requires a user to run
su tigergraph and, I assume, access the user’s bash profile so it can find
gadmin, how would a person pass this informaton to a
systemd service file, or would that even be necessary?
What I am asking is how I could make sure that the
systemd service file could run
gadmin start all and do it under the proper context.
I will use a file that @Szilard_Barany did a while ago:
Description="TigerGraph 3.0 server"
ExecStart=/home/tigergraph/tigergraph/app/cmd/gadmin start all
ExecStop=/home/tigergraph/tigergraph/app/cmd/gadmin stop all -y
That looks beautiful, Bruno. I will try that (with edits, of course.) Thank you so very much for sharing!
Can you please build this into your installation script? Being able to start all services after reboot automatically is a MUST for a server-class software (mysql, postgresql, etc).