Automatically Starting TigerGraph on a Linux machine after reboot

How do you configure TigerGraph to automatically start after reboot.

Right now, I am having to manually execute

su tigergraph

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.


1 Like

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 @SzilardTG 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!

1 Like