In some GNU/Linux distributions /etc/rc.local file is used for executing user commands on startup.
This file is very useful when writing service file is not neccesary.
Systemd is not supply rc.local file support by-default. User should activate this support manualy.
Create service file /etc/systemd/system/rc-local.service cat > /etc/systemd/system/rc-local.service << "EOF" [Unit] Description=/etc/rc.local Compatibility ConditionPathExists=/etc/rc.local [Service] Type=forking ExecStart=/etc/rc.local start TimeoutSec=0 StandardOutput=tty RemainAfterExit=yes SysVStartPriority=99 [Install] WantedBy=multi-user.target EOF
cat > /etc/rc.local << "EOF" #!/bin/bash #---Place your commands here---- exit 0 EOF
systemctl enable rc-local
systemctl start rc-local
systemctl status rc-local