Jump to content

Run lua commands on server with command line.


Recommended Posts

Hello, I've just set up my dedicated server on Devuan GNU/Linux machine.

I'd like to restart my server using cron scheduler for updates every day at 5:00 AM, but I understand that I must run c_save() console command before restart. Is it possible to run it from command line. Without this ability I can't do it from schedueler and can't automate the update process.

Thanks.

If you start your server shards with something like (Master always first):

screen -dmS DST_M ./dontstarve_dedicated_server_nullrenderer -cluster MyDediServer -shard Master

screen -dmS DST_C ./dontstarve_dedicated_server_nullrenderer -cluster MyDediServer -shard Caves

then you can 'connect' to the shards and stop them (Caves always first)

screen -S DST_C -p 0 -X stuff "c_shutdown()\n"

screen -S DST_M -p 0 -X stuff "c_shutdown()\n"

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...