Difference between revisions of "Configure eywa to start at boot"
Jump to navigation
Jump to search
(Created page with "Create the script /etc/systemd/system/eywa.service with the following content: [Unit] Description=Eywa [Service] Type=simple ExecStart=/usr/bin/node /usr/local/eywa/...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
[Unit] | [Unit] | ||
Description=Eywa | Description=Eywa | ||
− | + | ||
[Service] | [Service] | ||
Type=simple | Type=simple | ||
Line 13: | Line 13: | ||
User=root | User=root | ||
Restart=on-failure | Restart=on-failure | ||
− | + | ||
[Install] | [Install] | ||
WantedBy=multi-user.target | WantedBy=multi-user.target |
Latest revision as of 12:39, 13 May 2022
Create the script
/etc/systemd/system/eywa.service
with the following content:
[Unit] Description=Eywa [Service] Type=simple ExecStart=/usr/bin/node /usr/local/eywa/server.js -port 8443 -wsport 8444 User=root Restart=on-failure [Install] WantedBy=multi-user.target
To start/stop:
systemctl start eywa systemctl stop eywa
To enable/disable at boot:
systemctl enable eywa systemctl disable eywa