Posts

How to create a systemd service

Unit file https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6 https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-managing_services_with_systemd-unit_files Timer https://www.freedesktop.org/software/systemd/man/systemd.timer.html https://wiki.archlinux.org/index.php/Systemd/Timers

WorkQueue - Ruby SWIG

Install SWIG http://www.swig.org/Doc4.0/SWIGDocumentation.html#Preface_installation SWIG and Ruby http://www.swig.org/Doc4.0/SWIGDocumentation.html#Ruby_nn2 Ruby Module MakeMakefile https://ruby-doc.org/stdlib-2.5.1/libdoc/mkmf/rdoc/MakeMakefile.html Use find_header() and find_library() from MakeMakefile module for any headers and library needed for the interface.

Install CCTools Ubuntu 18.04LTS

sudo apt-get -y update sudo apt-get -y install build-essential zlib1g-dev libpcre3-dev sudo apt-get -y install libpython-dev sudo apt-get -y install libpython3-dev 2to3 python3-distutils sudo ln /usr/bin/x86_64-linux-gnu-python3-config /usr/bin/python3-config # Download SWIG wget https://iweb.dl.sourceforge.net/project/swig/swig/swig-4.0.1/swig-4.0.1.tar.gz tar -xzvf swig-4.0.1.tar.gz cd swig-4.0.1 ./configure make sudo make install # Download CCTOOLS wget http://ccl.cse.nd.edu/software/files/cctools-7.0.21-source.tar.gz tar -xzvf cctools-7.0.21-source.tar.gz cd cctools-release-7.0.21 ./configure --prefix /usr make sudo make install #Python2 binding is installed at /usr/lib/python2.7/site-packages/ # Python3 binding is installed at /usr/lib/python3.6/site-packages/ # Added path file sudo echo "../site-packages" > /usr/lib/python2.7/dist-packages/site-packages.pth sudo echo "/usr/lib/python3.6/site-packages" > /usr/local/lib/python3.6...