- Change directory to the project root:
cd ocvsmd
Then one of the two presets depending on your system:
Demo-Debian
– Debian-based Linux distros like Ubuntu.Demo-Darwin
– MacOScmake --preset OCVSMD-Debian cmake --build --preset OCVSMD-Debian-Debug
cmake --preset OCVSMD-Debian cmake --build --preset OCVSMD-Debian-Release
-
Installing the Daemon Binary:
sudo cp build/bin/Debug/ocvsmd /usr/local/bin/ocvsmd sudo cp build/bin/Debug/ocvsmd-cli /usr/local/bin/ocvsmd-cli
sudo cp build/bin/Release/ocvsmd /usr/local/bin/ocvsmd sudo cp build/bin/Release/ocvsmd-cli /usr/local/bin/ocvsmd-cli
-
Installing the Init Script:
sudo cp init.d/ocvsmd /etc/init.d/ocvsmd sudo chmod +x /etc/init.d/ocvsmd
-
Enabling at Startup if needed (on SysV-based systems):
sudo update-rc.d ocvsmd defaults
- Control the daemon using the following commands:
sudo /etc/init.d/ocvsmd start
sudo /etc/init.d/ocvsmd status
sudo /etc/init.d/ocvsmd restart
sudo /etc/init.d/ocvsmd stop
- View logs:
sudo grep -r "ocvsmd\[" /var/log/syslog