mediamonkeyserver v0.1.4
mediamonkey server
MediaMonkey Server is a cross-platform media server written in Node.js.
The code is based on upnpserver package.
Installation
$ npm install mediamonkeyserver
- 'uws' package needs binary modules, for platforms where we can't compile (some NAS devices) we might want to replace it by 'ws' in engine.io
Running
$ npm start
Server will start on port 10222
Running as a Service with Systemd
Below is a systemd script that can be created and placed in /etc/systemd/system/mediamonkeyserver.service so that the server can be run on system startup. Make sure you change your paths/variables for your system.
[Unit]
Description=MediaMonkeyServer
[Service]
#Path for Node and your individual server location may be different, change paths appropriately
ExecStart=/usr/bin/node /home/username/programs/mms/server.js
# Required on some systems
#WorkingDirectory=/opt/nodeserver
Restart=always
# Restart service after 10 seconds if node service crashes
RestartSec=10
# Output to syslog
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=mm-server
#Change user and group names as necessary
User=username
Group=groupname
[Install]
WantedBy=multi-user.target
Finish the setup with the following steps:
- Enable the service
systemctl enable mediamonkeyserver.service
- Verify its status
systemctl status mediamonkeyserver.service
If all went well your service should be running.
- Configuration changes
If you make any changes to this file, you'll need to reload the daemon with this command:
systemctl daemon-reload
and then restart the service with:
systemctl restart mediamonkeyserver.service
Testing
For testing purposes used mocha framework. To run tests, you should do this:
make test
Author
MediaMonkey team Olivier Oeuillot (Original author of the upnpserver package)
Contributors
https://github.com/mediamonkeyserver/mms/graphs/contributors