├── .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 | 5 | 6 | 7 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Systemd service file generator | MySystemd 8 | 10 | 11 | 12 | 13 | 14 | 16 | 18 | 19 | 20 | 21 | 22 | 62 | 63 | 64 | 65 | 66 | 67 |
68 |
69 |

My Systemd Generator

70 |

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 |
81 |
82 |

 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 |
96 |
97 | 98 | 99 |
100 |
101 | 102 | 103 | 104 |

Unit Options

105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 |
114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 |

Service Options

124 | 125 | 126 | 127 | 129 | 130 | 131 | 132 |
133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 |

Install Options

141 | 142 | 143 | 144 | 146 | 147 | 148 | 149 |
150 | 151 | 152 | 153 |
154 |
155 | 156 |

Systemd service file preview

157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 |
165 | 166 | 167 | 168 |
169 |
170 | 171 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | -------------------------------------------------------------------------------- /info.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 10 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /plus.svg: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------