User Tools

Site Tools


developer_s_reference:autorun_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
developer_s_reference:autorun_script [2025/05/31 10:01] – created adminstevedeveloper_s_reference:autorun_script [2025/05/31 10:03] (current) adminsteve
Line 1: Line 1:
- 
- 
 ====Instructions==== ====Instructions====
  
-A) Setup autorun script: Put autorun_gameprod.sh in /home/aoi/ +  A) Setup autorun script: Put autorun_gameprod.sh in /home/aoi/ 
-B) Setup autorun script to autorun:  Put autorun_gameprod.service in /etc/systemd/system/autorun_gameprod.service +  B) Setup autorun script to autorun:  Put autorun_gameprod.service in /etc/systemd/system/autorun_gameprod.service 
-C) Reload systemd and start the service +  C) Reload systemd and start the service 
-sudo systemctl daemon-reload +  sudo systemctl daemon-reload 
-sudo systemctl enable --now autorun_gameprod.service +  sudo systemctl enable --now autorun_gameprod.service 
-D)  Verify it stays up +  D)  Verify it stays up 
-sudo systemctl status autorun_gameprod.service +  sudo systemctl status autorun_gameprod.service 
-sudo journalctl -fu autorun_gameprod.service +  sudo journalctl -fu autorun_gameprod.service 
-E) Should just run now automatically upon boot up. +  E) Should just run now automatically upon boot up. 
-F) That said, to troubleshoot, or for reference: +  F) That said, to troubleshoot, or for reference: 
-To run AOI's autorun script: ./autorun & +  To run AOI's autorun script: ./autorun & 
-To stop AOI's autorun script:  touch a file called .killscript in the same directory, which will stop the script the next time it autostarts the MUD. +  To stop AOI's autorun script:  touch a file called .killscript in the same directory, which will stop the script the next time it autostarts the MUD. 
-To run AOI just one time:  ./test &+  To run AOI just one time:  ./test &
  
 ====Two files needed; reference copies below==== ====Two files needed; reference copies below====
  
 ===1) autorun_gameprod.sh=== ===1) autorun_gameprod.sh===
-steve@aoi:/home/aoi$ cat autorun_gameprod.sh+''steve@aoi:/home/aoi$ cat autorun_gameprod.sh
 #!/bin/bash #!/bin/bash
 ############################################################################## ##############################################################################
Line 116: Line 114:
     proc_syslog     proc_syslog
 done done
 +''
  
 ===2) autorun_gameprod.service=== ===2) autorun_gameprod.service===
developer_s_reference/autorun_script.1748685702.txt.gz · Last modified: 2025/05/31 10:01 by adminsteve · Currently locked by: 192.168.180.1,216.73.216.134

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki