Comments (6)
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.
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.
- ref: man file-hierarchy
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.
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.
Can you confirm latest commits work for you ?
from pmocr.
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.
Anyway, thanks :)
from pmocr.
Related Issues (12)
- init file starts even if CheckEnvironment exits with exitcode 1
- Setting up ServiceMode HOT 7
- https://github.com/deajan/osync/issues/156 HOT 1
- Tesseract 4 support HOT 5
- convert: Option '-resample' requires an argument or argument is malformed HOT 12
- where can i get FineReader OCR Engine 11 CLI for Linux HOT 1
- Merge ofunctions
- Add support for GNU Parallel HOT 6
- Enhance multilingual processing/options HOT 32
- installer thinks there must be a pmocr-batch.sh HOT 1
- (CRITICAL): not present appearing in log first run issue HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pmocr.