Skip to content

NunuM/my-systemd-service-file-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Systemd Generator

Tool that assist you when you are creating new service files for linux systemd

Tool Available Here

Docs scrapping

// Go to https://www.freedesktop.org/software/systemd/man/systemd.service.html
// open console

let terms = [];
let docs = {};
let last = null;

for(let el of document.getElementsByClassName("term")) {
    terms.push(el.innerText)
}

terms = terms.map(t => t.split(",").shift().trim());

for(let term of terms) {
  
  let el = document.getElementById(term);
  
  if(el) { docs[term] = el.nextSibling.innerHTML; last=el } else { docs[term] = last.nextSibling.innerHTML; }
}

About

A simple Systemd service file online generator.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages