├── .gitignore ├── README.md ├── app.js ├── download.svg ├── index.html ├── info.svg └── plus.svg /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### My Systemd Generator 2 | 3 | Tool that assist you when you are creating new service files for linux systemd 4 | 5 | [Tool Available Here](https://mysystemd.talos.sh) 6 | 7 | #### Docs scrapping 8 | 9 | ````js 10 | 11 | // Go to https://www.freedesktop.org/software/systemd/man/systemd.service.html 12 | // open console 13 | 14 | let terms = []; 15 | let docs = {}; 16 | let last = null; 17 | 18 | for(let el of document.getElementsByClassName("term")) { 19 | terms.push(el.innerText) 20 | } 21 | 22 | terms = terms.map(t => t.split(",").shift().trim()); 23 | 24 | for(let term of terms) { 25 | 26 | let el = document.getElementById(term); 27 | 28 | if(el) { docs[term] = el.nextSibling.innerHTML; last=el } else { docs[term] = last.nextSibling.innerHTML; } 29 | } 30 | 31 | 32 | ```` 33 | -------------------------------------------------------------------------------- /download.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 53 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 |A simple Systemd service file online generator. This powerful and 71 | intuitive user 72 | interface makes us more efficient when we are creating new services file with all possible settings. You can 73 | click on plus button to add 74 | more options under correspondent section. I hope that this tool makes your life more easier, 75 | enjoy! 76 |
77 |78 | Find the code GitHub 79 |
80 |
83 | #How to install
84 | sudo cp -v mysystemdservice.service /etc/systemd/system #copy service file
85 | sudo systemctl enable mysystemdservice.service #enable service
86 | sudo systemctl start mysystemdservice.service #start service
87 | sudo systemctl status mysystemdservice.service #check if the service started
88 | sudo journalctl -f -u mysystemdservice.service #inspect the logs
89 |
90 | #How to Remove
91 | sudo systemctl stop mysystemdservice.service
92 | sudo systemctl disable mysystemdservice.service
93 | sudo systemctl daemon-reload
94 |
95 |