PLVision / open_vmonitor

fast and lite web application for monitoring OVSDB (Open_vSwitch Database)
GNU Affero General Public License v3.0
43 stars 13 forks source link

Add systemd service #3

Open cabusar opened 6 years ago

cabusar commented 6 years ago

Hello,

I made a few tests with your tool on Debian Stretch and i made a simple systemd service file : (in /lib/systemd/system create a file named : openvmonitor.service)

[Unit] Description=OpenVmonitor - OpenvSwitch analysis tool Documentation=https://github.com/PLVision/open_vmonitor After=network.target [Service] Environment=NODE_PORT=3000 Environment=NODE_MODE=http Type=simple User=openvmonitor ExecStart=/usr/bin/node /home/openvmonitor/open_vmonitor/app.js Restart=on-failure [Install] WantedBy=multi-user.target

I assume :

To enable :

systemctl daemon-reload systemctl enable openvmonitor

image

Feel free to use it as you wish.

Many thanks for this tool, it work well with openvswitch on Proxmox 5.1, nice job. :)

plvisiondevs commented 6 years ago

Thank you, will add this service file in a new release