-
Notifications
You must be signed in to change notification settings - Fork 68
Running MediathekViewWeb as a service
Patrick edited this page Mar 11, 2017
·
1 revision
Install pm2. Follow their very simple guide.
See https://github.com/ether/etherpad-lite/wiki/How-to-deploy-Etherpad-Lite-as-a-service ''mutatis mutandis'': please adapt its content according to your system configuration.
=== Debian 9 === The following assumes your code is in /srv/mediathekviewweb .
Add a systemuser mediathekviewweb, and make the home owned by this user:
sudo adduser --system --home=/srv/mediathekviewweb --group mediathekviewweb sudo chown -R mediathekviewweb:mediathekviewweb /srv/mediathekviewweb
Add a file /etc/systemd/system/mediathekviewweb.service with the content
[Unit] Description=MediathekViewWeb After=syslog.target network.target [Service] Type=simple User=mediathekviewweb Group=mediathekviewweb ExecStart=/srv/mediathekviewweb/bin/run.sh [Install] WantedBy=multi-user.target
Having this set up, and issue #43 / pull-request #47 installed, you can now start MediathekViewWeb service with
sudo systemctl start mediathekviewweb
or stop it using
sudo systemctl stop mediathekviewweb
Usually you want to start it automatically on boot. Then run once
sudo systemctl enable mediathekviewweb