When using domain socket in net or http.createServer, I have to unlink it before service started and sometimes chmod to '777' after service started. Is it necessary to add option keys such as autoUnlink and chmod that do those jobs automatically?
require('net').createServer().listen({
"path": "/var/run/app.sock",
"autoUnlink": true, // boolean, default: false
"chmod": "777" // string | number ( 0777 or, 0o777)
})
When using domain socket in
netorhttp.createServer, I have tounlinkit before service started and sometimeschmodto'777'after service started. Is it necessary to add option keys such asautoUnlinkandchmodthat do those jobs automatically?