Linux Gmod server autorestart

I am running a gmod server using Ubuntu 14.04 usung gmod server manager this: http://gameservermanagers.com/lgsm/gmodserver/ and i was wondering how i could schedule a restart to happen every day at 5 am.

Depends on how you restart/the script restarts.

Basically like that:
Make a cronjob by typing crontab -e as your garrysmod user (not root)
and type this in



1 5 * * * cd /home/garrysmod/yourserverfolder && ./script.sh restart


You can save with Ctrl + x (and then type y)

oh sweet thanks man this will help alot