- Put the script commands you wish to run in /usr/bin/myscript (this is a service path)
- Make the script executable with chmod +x
- Create service file /usr/lib/systemd/system/my.service
- add the info below in file
[Unit] Description=To change In test buffer After=network.target
[Service] Type=simple ExecStart=/usr/local/bin/myshell.sh TimeoutStartSec=0
[Install] WantedBy=default.target
- Reload the systemd service files: systemctl daemon-reload
- Check that it is working with systemctl start my