diff options
author | Thorsten <thenktor@users.noreply.github.com> | 2020-05-19 23:54:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 07:54:29 +1000 |
commit | 08d78ac256251603ce2a7e7b1c7240044b0a6f1e (patch) | |
tree | 9183fdd73fa868204a07d9fcd67c35b63528d4b7 /packaging/installer | |
parent | f1ae38f11a6c1c4f17ec0180b9073149e27e83a1 (diff) |
Update synology.md (#8658)
* Update synology.md
Make this more readable with sub-headlines. Also add a note that /etc/rc.local may not exist.
* Update packaging/installer/methods/synology.md
Co-Authored-By: Joel Hans <joel.g.hans@gmail.com>
Co-authored-by: Joel Hans <joel.g.hans@gmail.com>
Diffstat (limited to 'packaging/installer')
-rw-r--r-- | packaging/installer/methods/synology.md | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packaging/installer/methods/synology.md b/packaging/installer/methods/synology.md index 1b743d164c..cc9b1aab4a 100644 --- a/packaging/installer/methods/synology.md +++ b/packaging/installer/methods/synology.md @@ -14,9 +14,11 @@ issue](https://github.com/SynoCommunity/spksrc/issues/2758), still open as of 20 Chroot package is not suitable for DSM versions greater than version 5 and may corrupt system libraries and render the NAS unable to boot. -The good news is that the 64-bit static installer works fine if your NAS is one that uses the amd64 architecture. It +The good news is that the [64-bit static installer](kickstart-64.md) works fine if your NAS is one that uses the amd64 architecture. It will install the content into `/opt/netdata`, making future removal safe and simple. +## Run as netdata user + When Netdata is first installed, it will run as _root_. This may or may not be acceptable for you, and since other installations run it as the `netdata` user, you might wish to do the same. This requires some extra work: @@ -32,14 +34,18 @@ chown -R netdata:netdata /opt/netdata/var/lib/netdata /opt/netdata/var/cache/net chown -R netdata:root /opt/netdata/var/log/netdata ``` +## Create startup script + Additionally, as of 2018/06/24, the Netdata installer doesn't recognize DSM as an operating system, so no init script is installed. You'll have to do this manually: 1. Add [this file](https://gist.github.com/oskapt/055d474d7bfef32c49469c1b53e8225f) as `/etc/rc.netdata`. Make it executable with `chmod 0755 /etc/rc.netdata`. -2. Edit `/etc/rc.local` and add a line calling `/etc/rc.netdata` to have it start on boot: +2. Add or edit `/etc/rc.local` and add a line calling `/etc/rc.netdata` to have it start on boot: ```conf # Netdata startup [ -x /etc/rc.netdata ] && /etc/rc.netdata start ``` + +3. Make sure `/etc/rc.local` is executable: `chmod 0755 /etc/rc.netdata`. |