developer_s_reference:autorun_script
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| developer_s_reference:autorun_script [2025/05/31 10:01] – created adminsteve | developer_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 / | + | |
| - | B) Setup autorun script to autorun: | + | B) Setup autorun script to autorun: |
| - | 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, | + | F) That said, to troubleshoot, |
| - | To run AOI's autorun script: ./autorun & | + | To run AOI's autorun script: ./autorun & |
| - | To stop AOI's autorun script: | + | To stop AOI's autorun script: |
| - | 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:/ | + | '' |
| #!/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
