Skip to content

Instantly share code, notes, and snippets.

@assafmo
Created March 23, 2020 12:00
Show Gist options
  • Save assafmo/4b9899c5efcf8b803aa6b5f952399dc3 to your computer and use it in GitHub Desktop.
Save assafmo/4b9899c5efcf8b803aa6b5f952399dc3 to your computer and use it in GitHub Desktop.
Create a startup script with systemd (/etc/rc.local replacement)
# Put in /etc/systemd/system/script-name.service
# Then run `sudo systemctl enable script-name`
[Unit]
Description=bla bla
[Service]
Type=oneshot
ExecStart=/bin/mount -o remount,exec /dev
RemainAfterExit=true
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment