I am a developer working with LAMP stack.
My pc run arch linux so it is systemd based.
it has a limited amount of ram 8Gb:
- sometime I use it for work
- sometime for play games
I want to easily be able start/stop the LAMP services with one command.
So I can keep them disabled to save some ram.
How can I accomplish the above without writing every time:
sudo systemctl start httpd.service sudo systemctl start mariadb.service sudo systemctl start redis.service
I'll post below my solution in case some newbie bash lover need it, if you have a better solution please add it and I'll upvote it.