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.

Best,
Bruno

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:

[Unit]
Description="TigerGraph 3.0 server"
Documentation=https://docs-beta.tigergraph.com/v/3.0/
Requires=network.target

[Service]
Type=simple
RemainAfterExit=yes
User=tigergraph
LimitNOFILE=100000
ExecStart=/home/tigergraph/tigergraph/app/cmd/gadmin start all
ExecStop=/home/tigergraph/tigergraph/app/cmd/gadmin stop all -y
Restart=on-abnormal

[Install]
WantedBy=multi-user.target
2 Likes

That looks beautiful, Bruno. I will try that (with edits, of course.) Thank you so very much for sharing!

1 Like