code: function setupSystemD (name, options, callback) {
    options.stdOut = (options.logDir && `${options.logDir}/${name}-out.log`) || null
    options.stdErr = (options.logDir && `${options.logDir}/${name}-err.log`) || null
  
    const filepath = `/etc/systemd/system/${name}.service`
  
    const script = systemdTemplate(options)
  
    if (options.dryRun) {
      console.log(script)
      return
    }
  
    console.log(`Installing service on: ${filepath}`)
    fs.exists(filepath, exists => {
      if(!exists) {
        fs.writeFile(filepath,script, err => {
          if (err) {
            callback(err)
            return
          }
  
          fs.chmod(filepath,'755', err => {
            if (err) {
              callback(err)
              return
            }
  
            let cmd = 'systemctl daemon-reload'
            console.log('Running %s...', cmd)
            exec(cmd, err => {
              callback(err, 'SystemD service registered succesfully')
            })
          })
        })
      } else {
        callback('Service already exists, please uninstall first')
      }
    })
  }
docs: Installs a service file to /etc/systemd/system/
  
  It deals with logs, restarts and by default points
  to the normal system install