Verified Commit 1b8443a5 authored by Aral Balkan's avatar Aral Balkan
Browse files

Move StartLimitIntervalSec to [Unit] section of service unit template

Remove console log statement
parent fe48bc2a
......@@ -212,6 +212,7 @@ switch (true) {
Description=Indie Web Server
Documentation=https://ind.ie/web-server/
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
......@@ -219,7 +220,6 @@ switch (true) {
Environment=PATH=/sbin:/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
RestartSec=1
StartLimitIntervalSec=0
Restart=always
ExecStart=${executable} test ${absolutePathToServe}
......@@ -228,8 +228,6 @@ switch (true) {
WantedBy=multi-user.target
`
console.log('systemd service unit', unit)
// Save the systemd service unit.
fs.writeFileSync('/etc/systemd/system/web-server.service', unit, 'utf-8')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment