Autostart on Synology NAS boot


To get Open Peer Power to automatically start when you boot your Synology NAS:

SSH into your Synology & login as admin or root

$ cd /volume1/openpeerpower

Create “openpeerpower.conf” file using the following code

# only start this service after the httpd user process has started
start on started httpd-user

# stop the service gracefully if the runlevel changes to 'reboot'
stop on runlevel [06]

# run the scripts as the 'http' user. Running as root (the default) is a bad ide
#setuid admin

# exec the process. Use fully formed path names so that there is no reliance on
# the 'www' file is a node.js script which starts the foobar application.
exec /bin/sh /volume1/openpeerpower/opp-daemon start

Register the autostart

ln -s openpeerpower.conf /etc/init/openpeerpower.conf

Make the relevant files executable:

chmod -r 777 /etc/init/openpeerpower.conf

That’s it - reboot your NAS and Open Peer Power should automatically start