Questions tagged [lockfile]

106 questions
1
vote
0 answers

how to use lockf with xerces-c

I am new to programming and I am trying to use lockf to lock a XML file. I using xerces-c to parse the XML file and I need to lock the file. The function is similar the the example below: void GetConfig::readConfigFile(string& configFile) …
Marcio
  • 11
  • 1
1
vote
0 answers

How to properly delete lockfile in a python abstract class?

I have a python3 cron script that consists of a MyCron class and a MyIMAP class. The MyCron class is an abstract class that makes sure only one instance of the script runs. It creates and destroys a lock file and throws a SingleInstanceExeption…
1
vote
3 answers

Prevent other terminals from running a script while another terminal is using it

I would like prevent other terminals from running a certain script whenever another terminal is running it however in bash but I'm not quite sure on how I would be able to go about in doing it. Any help or tip could be greatly appreciated! In…
1
vote
1 answer

Define pidfile in DaemonContext disable logger in python

i'm trying to create a daemon service in python with log to file opption using logging. If i add the pidfile parameter to daemon.DaemonContext constructor, logger is not log any messages to logger.log file. But if i remove that parameter,…
Rimon Fedyuk
  • 471
  • 1
  • 4
  • 8
1
vote
1 answer

Delphi Using LockFile on windows 7 64

I have found that if you open a file that resides on 32 bit server in a share folder from a 64 bit windows 7 machine, read it, lock it and then open it again. When you close all open handles the file actually remains open. The exact steps…
There is no spoon
  • 1,775
  • 2
  • 22
  • 53
1
vote
2 answers

backup script requires a pid lock to prevent multiple instances

i have a bash script that runs daily rsync incremental backups. my problem is i end up with multipul instances running. im new to bash scripts so im not sure if i have an issue in my script? posted below. but i have read about a pid lockfile? could…
Kevin
  • 123
  • 2
  • 10
1
vote
1 answer

Simplecov gem using obsolete lockfile boolean argument

I have an application which I have just added Simplecov to in order to get code coverage stats. After adding this Gem, I began getting the following errors: /Users/KristaOdger/.rvm/gems/jruby-1.7.6/gems/lockfile-2.1.0/lib/lockfile.rb:72 warning:…
Krista
  • 895
  • 1
  • 6
  • 16
1
vote
1 answer

Removing stale lockfile - rsnapshot doesn´t like my lock files

I have to pause rsnapshot from running some backups some times, so I created a lockfile for this time: cat > /var/run/rsnapshot/rsnapshot.pid << EOF $$ EOF sleep 120s But rsnapshot tells me "removing stale lockfile" and goes on with its…
user2693017
  • 1,750
  • 6
  • 24
  • 50
0
votes
0 answers

transfer lockfile to another unix user

If a process running as (non-root) user A has created a lockfile on disk to reserve a shared resource, what's a good way to seamlessly "hand off" that lock to another process, running as user B, which continues to use the shared resource, and…
slowdog
  • 6,076
  • 2
  • 27
  • 30
0
votes
0 answers

remove unused dependency form .lockfile

I plan to delete one unused dependency from my .lockfile, but after manually delete it I got an error "Resolved 'net.bytebuddy:byte-buddy:1.2.17' which is not part of the dependency lock state". I just want to delete one dependency and running…
lalala
  • 1
  • 1
0
votes
0 answers

Old LOCKFILE warning on github repo - I cant clone

I have been tasked to work on a website. The site was built in React and calls on most of the content from WordPress. I got the credentials to the host, WordPress, and the github repo. I tried to clone the code. The files came through but when I…
fluva74
  • 21
  • 2
0
votes
1 answer

GitHub ci-test throwing "Your lockfile needs to be updated" even after I committed an updated Yarn lockfile

I was trying to merge my pull request to a repository. I got this error: error Your lockfile needs to be updated, but yarn was run with --frozen-lockfile. I figured this was due to my changes including new packages, so the lockfile has to be…
Nathan Tew
  • 432
  • 1
  • 5
  • 21
0
votes
0 answers

Dovecot fails to create autoexpunge lock file for every specific mailbox

Set as fillows: mail_location = maildir:/var/vmail/%d/%n/Maildir Dovecot error record for every mailbox: Error: autoexpunge: Couldn't create dovecot.autoexpunge.lock lock: file_create_locked(/var/vmail//dovecot.autoexpunge.lock) failed:…
Sergey K
  • 7
  • 2
0
votes
0 answers

The effect of the registry path in the pnpm-lock.yaml

I find that dependencies are prefixed with registry path like blew: packages: registry.npmmirror.com/@ampproject/remapping/2.2.0: resolution: {integrity:…
ShengjieLu
  • 89
  • 1
  • 2
0
votes
1 answer

Gradle: No matching variant was found

After changing my project's build.gradle to use a new version of a Gradle plugin which does a whole bunch of stuff (hard to isolate root cause), I get the following error when running resolveAndLockAll --write-locks to update the project's…
Toldry
  • 485
  • 1
  • 4
  • 13