Raised This Month: $62 Target: $400

Are these correct?

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Senior Member
Join Date: May 2019
Location: Sweden
Old 03-19-2021 , 05:56   Are these correct?
Reply With Quote #1

Hello, so i am trying to make an auto update cron for checking updates every hour with my LGSM script, i currently got this:

0 * * * * su - awpenabled -c '/home/awpenabled/csgoserver update' > /dev/null 2>&1
0 * * * * su - awpdisabled -c '/home/awpdisabled/csgoserver update' > /dev/null 2>&1
0 * * * * su - nonades -c '/home/nonades/csgoserver update' > /dev/null 2>&1
0 * * * * su - scoutonly -c '/home/scoutonly/csgoserver update' > /dev/null 2>&1

And wondering if its correct, and if it will work.

Cause im a bit iffy since when you manually update it, it's ./csgoserver u, or ./csgoserver update

So please lmk if its all good and correct.

painlesstgp is offline
AlliedModders Donor
Join Date: Feb 2013
Old 03-19-2021 , 12:34   Re: Are these correct?
Reply With Quote #2

Documentation: https://docs.linuxgsm.com/configurat...obs#every-hour

Code example for a cronjob to perform every hour.
PHP Code:
* * * *  su username -'/home/username/gameserver monitor' > /dev/null 2>&
Your cronjob looks to be correct.

./csgoserver u and ./csgoserver update are the same, one is a shortned version. Check ./csgoserver for the detailed output of all the commands.

NOTICE: That the above has to be performed under the ROOT cronjob. If you want to do a cronjob under the user profile, it would look like this:

PHP Code:
* * * * /home/username/gameserver monitor > /dev/null 2>&

Last edited by Maxximou5; 03-19-2021 at 12:36.
Maxximou5 is online now

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 22:25.

Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode