systemd_script_to_run_a_bash_script_once_on_startup

no way to compare when less than two revisions

Differences

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


systemd_script_to_run_a_bash_script_once_on_startup [11.10.2018 18:00] (current) – created Pascal Suter
Line 1: Line 1:
 +====== Systemd Script to run a bash script once on startup ======
 +<code>
 +[Unit]
 +Type=simple
 +Description=SNAT for nodes
 +Wants=network-online.target
 +After=network.target network-online.target
  
 +[Service]
 +ExecStart=/srv/admin/SNAT.sh
 +
 +[Install]
 +WantedBy=multi-user.target
 +</code>
  • systemd_script_to_run_a_bash_script_once_on_startup.txt
  • Last modified: 11.10.2018 18:00
  • by Pascal Suter