STEAM GROUP
Linux Game Server Managers linuxgsm
STEAM GROUP
Linux Game Server Managers linuxgsm
43
IN-GAME
488
ONLINE
Founded
February 9, 2015
RageFoxTV May 12, 2017 @ 12:52pm
Auto Restart with Crontab
hi Guys
I have the following problem. I wanted to per crontab an autorestart of my server.
I am trying to use the command line as a root, and I type the command
"crontab -u day -e"
crontab opens and I add the line
"* / 5 * * * * / home / daytona / lgsm / functions command_restart.sh> / dev / Zero 2> & 1"
and in the second line I just leave it free and save the whole and end it.
"Installing new crontab" now appears.
Unfortunately nothing happens. If I enter ./arma3server r (restart) the server stops and then starts again. My goal was that I take this command and say the cronjob should run it every 4 hours to the example.
Could someone help me and say what alternative I have or where my error lies?
< >
Showing 1-5 of 5 comments
Mazer May 12, 2017 @ 1:00pm 
You need to specify that the cron task is to be run by the lgsm user - NOT ROOT.
RageFoxTV May 12, 2017 @ 1:04pm 
when i login in my lgsm user and write "crontab -e" and safe the lines come the issue/error operation not permitted. i was watching all the time in google today. but no luck
!@#$@!UBYU!G@^&* May 12, 2017 @ 4:31pm 
Originally posted by Daytona:
when i login in my lgsm user and write "crontab -e" and safe the lines come the issue/error operation not permitted. i was watching all the time in google today. but no luck
From root give ur user access to crontab. Thats all. Google not hurts.
RageFoxTV May 16, 2017 @ 7:50am 
I still try an automatic restart of the server. My command is "*/5 * * * * su - daytona -c '/home/daytona/lgsm/functions/command_restart'> / dev/null 2>&1"

Please do not pay attention to the time. My thought was it, that every 4 hours, the command ./arma3server r (restart) is executed. Unfortunately the whole does not work. Someone knows my exact error? Or could tell me an alternative, so I try after days of long-term success?
RageFoxTV May 16, 2017 @ 7:51am 
and thank you @Z0X0VSKY, but isnt working :/
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: May 12, 2017 @ 12:52pm
Posts: 5