Code Monkey home page Code Monkey logo

Comments (6)

deajan avatar deajan commented on July 21, 2024

Fact is that /etc/systemd is a symlink on redhat / centos / fedora* that points to /usr/lib/systemd.
Could you tell me if the Debian version of that dir is a link, and in that case, give me the destination ?

from pmocr.

popnt avatar popnt commented on July 21, 2024

On the debian distro I'm using, it is a regular diretory under /etc/systemd

The systemd man page for file-hierarchy will probably be a better reference than an individual distro. To me it sounds like /etc/ is where all the system specific individual configs are located, whereas /usr/lib us where all the distro-specific configs are located. Clearly redhat does things their own way as you have described.

when I ran install.sh it just copied pmocr-srv.service to the /usr/lib/systemd/ folder and named the destination file "system" since the directory didn't exist. Switching the SERVICE_DIR_SYSTEMD_SYSTEM target to /etc/systemd/system resulted in the correct copy operation

A more common Debian distro to compare against might be Ubuntu, however a cheap OCR server on a Raspberry is also pretty handy use of $35 especially when paired with a cheap duplexing scanner.

Very useful script! Thanks for making it easy to read through all the code.

from pmocr.

deajan avatar deajan commented on July 21, 2024

Well, according to this, /usr/lib/systemd/system is a good place to place unit files. I wonder why Debian doesn't have that.

A good compromise would be to put files in /lib/systemd/system which works for both CentOS (/lib is a symlink to /usr/lib in CentOS) and Debian without using /etc/systemd/system path which isn't supposed to be used by installed packages.

I've setup a debian 8 VM to test this, seems to work.
Seems that redhat doesn't do things their own way after all.

from pmocr.

deajan avatar deajan commented on July 21, 2024

Can you confirm latest commits work for you ?

from pmocr.

popnt avatar popnt commented on July 21, 2024

For my own installation I simply modified the install.sh code from build 2016050901 to reflect /etc/systemd/system and it works fine for me. Since I am already using it in a production environment and it works well I hesitate to reinstall just to test.

That being said I did take a look at my local /lib/systemd/system used in build 2016052501 and there are numerous .service files there as well, so I'll hazard a guess that using that directory will be effective.

If I do end up having to reinstall or upgrade following any future commits I'll keep an eye on that element and update this thread. I suspect it will work perfectly.

Thanks for taking a look at this!

from pmocr.

deajan avatar deajan commented on July 21, 2024

Anyway, thanks :)

from pmocr.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.