Differences

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

Link to this comparison view

systemd_script_to_run_a_bash_script_once_on_startup [11.10.2018 18:00] (current)
Pascal Suter created
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>​