search for: lock_fil

Displaying 12 results from an estimated 12 matches for "lock_fil".

Did you mean: lock_file
2016 Oct 23
1
Guest startup process blocks if a hook's child process is still running (i.e : after forking)
...systemd-inhibit when the start hook is called and keep it running until the shutdown hook is called. This seems to work well when I run the hook script in a normal bash shell, but running it through libvirt simply blocks the starting process until systemd-inhibit quits. Here's the script : LOCK_FILE="/tmp/vfio-lock-$OBJECT" if [ "$OPERATION" == "start" ]; then ( touch "$LOCK_FILE"; systemd-inhibit --what="sleep" \ --who="libvirt" \ --mode="block" \ inotifywait -qq -e delete "$LOCK_FILE" ) & disown...
2010 Oct 25
1
CTDB_Recovery_Lock
Hello list, I compiled the CTDB version from samba.org::ftp/unpacked/ctdb with the parameter: " --prefix= " This I did on CentOS 5.5 Then I copy and edit ctdb.sysconfig from /usr/src/ctdb/config to /etc/sysconfig/ctdb I set CTDB_RECOVERY_LOCK="/share/ctdb_lock/lock_file" on all three nodes. Every node can read and write on /share. When I try to start ctdb it start successful with [OK]. But it print the message "No recovery lock specified. Starting CTBD without split brain prevention." When I start the ctdbd with the " --reclock=/share/ctdb_l...
2005 Jul 18
0
why $cdr{'CALLERID'} and $cdr{'DNID'} are empty in perl agi connected with asterisk manager
...sterisk+AGI # # RADIUS Accounting By # (c)2004 Porta Software Ltd. www.portaone.com # Oleksandr Kapitanenko <kapitan@portaone.com> # use strict; use Asterisk::Manager; use Sys::Syslog; use POSIX; use Config::IniFiles; use Authen::Radius; Authen::Radius->load_dictionary; # Lock file # my $lock_file = '/var/run/ast-rad-acc.pid'; # Config vars # my $runas_user = 'nobody'; my $ast_hostname = 'localhost'; my $ast_username = 'test'; my $ast_password = 'test'; my $monitor_dir = '/var/spool/asterisk/monitor'; # Read global RADIUS configuratuin fro...
2002 Feb 24
2
Write-only option
...h stuff. --Cut here---------------------------------------------------------------- diff -urN rsync-2.5.2.orig/loadparm.c rsync-2.5.2/loadparm.c --- rsync-2.5.2.orig/loadparm.c Sun Dec 2 09:16:15 2001 +++ rsync-2.5.2/loadparm.c Sat Feb 23 13:48:12 2002 @@ -117,6 +117,7 @@ char *comment; char *lock_file; BOOL read_only; + BOOL write_only; BOOL list; BOOL use_chroot; BOOL transfer_logging; @@ -149,6 +150,7 @@ NULL, /* comment */ DEFAULT_LOCK_FILE, /* lock file */ True, /* read only */ + False, /* write only */ True, /* list */ True, /* use chroot */ False, /*...
2004 Feb 12
1
[PATCH] write only
...intf(FERROR, "push_dir %s failed: %s (3)\n", full_fname(dir), strerror(errno)); --- rsync-2.6.0/loadparm.c.orig Thu Feb 12 11:47:17 2004 +++ rsync-2.6.0/loadparm.c Thu Feb 12 11:48:11 2004 @@ -119,6 +119,7 @@ typedef struct char *comment; char *lock_file; BOOL read_only; + BOOL write_only; BOOL list; BOOL use_chroot; BOOL transfer_logging; @@ -151,6 +152,7 @@ static service sDefault = NULL, /* comment */ DEFAULT_LOCK_FILE, /* lock file */ True, /* read only */ + False,...
2017 Sep 07
2
Should I worry about the "vanished files" warning?
...ed in a tmp dir and are moved to a final dir when they are finished. Every 5 mins, I rsync the files from the final directory to a remote machine. I guess that during the sync process some files get re-written, when the batch process moves the fresh ones in the final dir. My cron entry: flock -xn /lock_file -c \ "/usr/bin/rsync -e \"ssh -C\" --bwlimit=512k \ --recursive --delay-updates --quiet --update \ --include=\"*/\" --include=\"*.xml\" --include=\"*.csv\" \ --exclude=\"*...
2001 Dec 28
1
(patch) memory leak in loadparm.c
...#ifdef LOG_DAEMON Globals.syslog_facility = LOG_DAEMON; #endif + if (!bsDefaultInitialized) { + bsDefaultInitialized = True; +#define maybe_init(x) if (sDefault.x != NULL) sDefault.x = strdup(sDefault.x) + maybe_init(name); + maybe_init(path); + maybe_init(comment); + maybe_init(lock_file); + maybe_init(uid); + maybe_init(gid); + maybe_init(hosts_allow); + maybe_init(hosts_deny); + maybe_init(auth_users); + maybe_init(secrets_file); + maybe_init(exclude); + maybe_init(exclude_from); + maybe_init(include); + maybe_init(include_from); + maybe_init(log...
2001 Dec 03
2
Bug in rsyncd 2.5.0 while handling config file string values
...() at clientserver.c:506 #9 0x0805225a in main (argc=0, argv=0x0) at main.c:817 #10 0x400476ef in __libc_start_main () from /lib/libc.so.6 (gdb) select 1 (gdb) p s $1 = (char **) 0x807ace4 (gdb) p *s $2 = 0x807680c "nobody" (gdb) p sDefault $3 = {name = 0x0, path = 0x0, comment = 0x0, lock_file = 0x8076813 "/var/run/rsyncd.lock", read_only = 1, list = 1, use_chroot = 1, transfer_logging = 0, ignore_errors = 0, uid = 0x807680c "nobody", gid = 0x807680c "nobody", hosts_allow = 0x0, hosts_deny = 0x0, auth_users = 0x0, secrets_file = 0x0, strict_modes =...
2002 Jun 18
2
rsyncd + scripting
Hey all, Like a lot of folks, I use rsync to pull content out to production web servers. Tastes great, less filling. Here's what I'd like to be able to do: Sometimes a web tree is not ready to sync, for whatever reason. I have many modules available, so stopping ryncd is not an option. I'd like to be able to tell rsync in daemon mode "this particular module is not available at
2017 Sep 07
0
Should I worry about the "vanished files" warning?
...and are moved to a final dir when they are finished. Every 5 mins, I rsync the files from the final directory to a remote machine. I guess that during the sync process some files get re-written, when the batch process moves the fresh ones in the final dir. > > My cron entry: > flock -xn /lock_file -c \ > "/usr/bin/rsync -e \"ssh -C\" --bwlimit=512k \ > --recursive --delay-updates --quiet --update \ > --include=\"*/\" --include=\"*.xml\" --include=\"*.csv\" \ &gt...
2009 Aug 26
1
denyhosts configuration
...ave. SECURE_LOG = /var/log/secure HOSTS_DENY = /etc/hosts.deny PURGE_DENY = 1w BLOCK_SERVICE = sshd DENY_THRESHOLD_INVALID = 2 DENY_THRESHOLD_VALID = 10 DENY_THRESHOLD_ROOT = 1 DENY_THRESHOLD_RESTRICTED = 1 WORK_DIR = /var/lib/denyhosts SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS=YES HOSTNAME_LOOKUP=NO LOCK_FILE = /var/lock/subsys/denyhosts ADMIN_EMAIL = user at example.com SMTP_HOST = localhost SMTP_PORT = 25 SMTP_FROM = DenyHosts <nobody at example.com> SMTP_SUBJECT = DenyHosts Report from $[HOSTNAME] AGE_RESET_VALID=5d AGE_RESET_ROOT=25d AGE_RESET_RESTRICTED=25d AGE_RESET_INVALID=10d DAEMON_LOG =...
1999 Oct 20
3
patch for tinc-0.3
...ckfile\n"; write_syslog('info', "tincsched: Removing lockfile\n"); &rm_lock("$HOME/ipmkbs.pid", $$); print "tincsched: terminating\n"; write_syslog('info', "tincsched: terminating\n"); exit(0); 1; } sub lock_file { local($path) = @_; $lock_status = 0; # # WHOOPS.. open the filehandle NON destructive # $open_status = open(FDESCRIPTOR, "+>>$path"); if ($open_status) { # # now test AND lock if test succeeds # if (File::lockf::tlock(FDESCRIPTOR) == EAGAIN) {...