Wiki.js 2.0 - Run as Background Service on DSM 7¶
Wiki.js can be set to start automatically when DSM starts by running the node server as a background service.
Running as Service on DSM 7¶
On DSM, use the following content for the wiki.service
file when following the Run as Service Wiki.js guide (assuming your wiki is installed at /volume1/web/wiki):
Highlighted lines are the differences compared to the official manual:
- Line 7:
ExecStart
- Node.js binary resides under/usr/local/bin/
- Line 10:
User
- change toroot
- Line 12:
WorkingDirectory
- change to/volume1/web/wiki/