Library for checking unique program instances libuniquecheck provides functions to check if another instance of the same program is already running on the system or for the same user. It uses /proc filesystem to detect running processes.

For build .deb packages run dpkg-buildpackage -us -uc -b