@cryptotaxi247 / netdata-1 / commits / 08d78ac25

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>

Thorsten committed May 19, 2020 at 23:54 UTC 08d78ac256251603ce2a7e7b1c7240044b0a6f1e
1 file changed +8 -2
packaging/installer/methods/synology.md
+8 -2
@@ -14,9 +14,11 @@ issue](https://github.com/SynoCommunity/spksrc/issues/2758), still open as of 20
14 Chroot package is not suitable for DSM versions greater than version 5 and may corrupt system libraries and render the
15 NAS unable to boot.
16
17 -The good news is that the 64-bit static installer works fine if your NAS is one that uses the amd64 architecture. It
17 +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
18 will install the content into `/opt/netdata`, making future removal safe and simple.
19
20 +## Run as netdata user
21 +
22 When Netdata is first installed, it will run as _root_. This may or may not be acceptable for you, and since other
23 installations run it as the `netdata` user, you might wish to do the same. This requires some extra work:
24
@@ -32,14 +34,18 @@ chown -R netdata:netdata /opt/netdata/var/lib/netdata /opt/netdata/var/cache/net
34 chown -R netdata:root /opt/netdata/var/log/netdata
35 ```
36
37 +## Create startup script
38 +
39 Additionally, as of 2018/06/24, the Netdata installer doesn't recognize DSM as an operating system, so no init script is
40 installed. You'll have to do this manually:
41
42 1. Add [this file](https://gist.github.com/oskapt/055d474d7bfef32c49469c1b53e8225f) as `/etc/rc.netdata`. Make it
43 executable with `chmod 0755 /etc/rc.netdata`.
40 -2. Edit `/etc/rc.local` and add a line calling `/etc/rc.netdata` to have it start on boot:
44 +2. Add or edit `/etc/rc.local` and add a line calling `/etc/rc.netdata` to have it start on boot:
45
46 ```conf
47 # Netdata startup
48 [ -x /etc/rc.netdata ] && /etc/rc.netdata start
49 ```
50 +
51 +3. Make sure `/etc/rc.local` is executable: `chmod 0755 /etc/rc.netdata`.