Displaying 20 results from an estimated 203 matches for "statedir".
2013 Jul 30
0
nut package with Riello UPS support
On Jul 30, 2013, at 10:39 AM, Pavel Potcheptsov (EKTOS) wrote:
> Is this a trouble? Driver use path /var/state/ups/ but upsd use path /var/db/nut/upsd.pid
Yes, the driver and upsd need to agree on the path to the socket.
From the FreeBSD ports tree:
/usr/ports/sysutils/nut/Makefile:
STATEDIR?= /var/db/nut
[...]
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \
--program-transform-name="" \
--localstatedir=${STATEDIR} \
--datadir=${PREFIX}/etc/nut \
--with-drvpath=${PREFIX}/libexec/nut \
--with-statepath=${STATEDIR} \
--with-altpidpath=${STATEDIR} \
--with-pidpath...
2014 Feb 18
0
Wait for network delay
...x ] && [ -s "$F" -a -x "$F" ] && UPSC="$F"
done
[ x"$UPSC" = x -o ! -x "$UPSC" ] && \
echo "Missing UPSC client" && exit 1
for F in /var/lib/nut/var/lib/upsd /var/{state,lib}/{nut,ups}; do
[ x"$STATEDIR" = x ] && [ -d "$F" ] && STATEDIR="$F"
done
[ x"$STATEDIR" = x -o ! -d "$STATEDIR" ] && \
echo "Missing state directory for sockets and pidfiles" && exit 1
echo_wall() {
echo "`date`: $*" >&...
2025 May 01
1
How to determine Samba Installation directory
Excellent suggestion! I forgot about that. I get:
# smbd -b | egrep "LOCKDIR|STATEDIR|CACHEDIR|PRIVATE_DIR"
LOCKDIR: /var/cache/samba
STATEDIR: /var/lib/samba
CACHEDIR: /var/cache/samba
PRIVATE_DIR: /var/lib/samba/private
In my response to Roland I figured using --prefix /var/lib/samba
That looks correct, right? I don't suppose the /var/cache directories figur...
2002 Sep 29
3
Shorewall 1.3.9
Shorewall 1.3.9 is available.
In this release:
1. DNS Names are now allowed in Shorewall config files (I still recommend
against using them however).
2. The connection SOURCE may now be qualified by both interface
and IP address in a Shorewall rule.
3. Shorewall startup is now disabled after initial installation until
the file /etc/shorewall/startup_disabled is removed.
4. The
2014 Feb 16
3
Wait for network delay
On 2/5/2014 8:24 AM, Charles Lepple wrote:
> On Feb 4, 2014, at 10:48 PM, Elliot Dierksen wrote:
>
>> NUT will complain endlessly about communication errors and never establish SNMP communication with my APC UPS
> Hmm, at first glance, I read the "complain endlessly" part as a figure of speech, and figured SNMP would get there eventually since it's UDP. But if you have
2019 Feb 20
4
Error NT_STATUS_CONNECTION_REFUSED
...NT_STATUS_CONNECTION_REFUSED)
looks like its not even running...
ps ax | egrep "samba|smbd|nmbd|winbindd"
1965 pts/0 S+ 0:00 grep -E --color=auto samba|smbd|nmbd|winbindd
# smbd -b | grep "CONFIGFILE"
CONFIGFILE: /etc/samba/smb.conf
# smbd -b | egrep "LOCKDIR|STATEDIR|CACHEDIR|PRIVATE_DIR"
LOCKDIR: /var/run/samba
STATEDIR: /var/lib/samba
CACHEDIR: /var/cache/samba
PRIVATE_DIR: /var/lib/samba/private
Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833...
2025 Apr 30
1
How to determine Samba Installation directory
The instructions at https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller#Only_Applicable_if_Samba_was_Previously_Installed can be helpful:
# smbd -b | egrep "LOCKDIR|STATEDIR|CACHEDIR|PRIVATE_DIR"
LOCKDIR: /usr/local/samba/var/lock/
STATEDIR: /usr/local/samba/var/locks/
CACHEDIR: /usr/local/samba/var/cache/
PRIVATE_DIR: /usr/local/samba/private/
-- Peter
> On Apr 30, 2025, at 4:40?PM, Jeffrey Walton via samba <samba at lists.samba.org> wrote:
&...
2019 Mar 26
3
Problem achieving manual synchronisation of idmap.ldb and the associated User and Group ID mappings between two Samba 4 AD DCs
Cheers Louis, i just ran the diagnostic snippet you sent me:
pi at ad1:/var/lib/samba/private $ sudo ls -al $(samba -b | grep STATEDIR |
awk {' print $NF '})/sysvol
total 20
drwxrwx---+ 3 root 3000000 4096 Mar 25 16:36 .
drwxr-xr-x 8 root root 4096 Mar 25 17:31 ..
drwxrwx---+ 4 root 3000000 4096 Mar 25 16:36 samdom.example.com
pi at ad2:/var/lib/samba/private $ sudo ls -al $(samba -b | grep STATEDIR |
awk {' pri...
2017 Jun 16
2
Erro sysvolcheck/sysvolreset
Hello!
samba -b | grep STATEDIR
STATEDIR: /opt/samba/var/locks
I commented at line
idmap_ldb:use rfc2307 = yes
in my smb.conf, error is diferent now
samba-tool ntacl sysvolreset
open: error=2 (No such file or directory)
ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined error')
File
"/opt/s...
2013 Jul 30
3
nut package with Riello UPS support
# reboot
Connection to 192.168.5.81 closed by remote host.
Connection to 192.168.5.81 closed.
ppo at admin:/tmp$ ssh root at 192.168.5.81
root at 192.168.5.81's password:
Last login: Tue Jul 30 14:10:49 2013 from pc-ppo.kh.ektos
OpenBSD 5.3 (GENERIC.MP) #58: Tue Mar 12 18:43:53 MDT 2013
# ps -aux | grep
ups
root 2254 0.0 0.0 324 700 p0 S+ 5:29PM 0:00.00 grep ups
# ps -aux
2005 May 25
5
Patch to fix dynamic add/delete to zone functinality
...00000000 +0300
@@ -7001,16 +7001,20 @@
while read z hosts; do
if [ "$z" = "$zone" ]; then
+ found=
for h in $hosts; do
+ [ -n "$found" ] && break
for host in $hostlist; do
if [ "$h" = "$host" ]; then
- rm -f ${STATEDIR}/zones_$$
- startup_error "$host already in zone $zone"
+ found=Yes
fi
done
done
-
- [ -z "$hosts" ] && hosts=$hostlist || hosts="$hosts $hostlist"
+ if [ -n "$found" ]; then
+ error_message "Warning: $host does...
2014 Jun 04
1
FreeNAS configuration command
Anybody knows what configure command settings FreeNAS use to compile NUT?
More info on my journey:
http://forums.freenas.org/index.php?threads/nobreak-bz1200-br-back-ups-rs-1200va-600w-bivolt-115-nt.20247/
Thanks
Bruno
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2002 Sep 30
0
1.3.9 and ''restarted'' file
In an email yesterday evening, Perry Nguyen expressed concern about the
moving of the ''restarted'' file from /var/lib/shorewall to $STATEDIR
(STATEDIR is set in your shorewall.conf file and defaults to
/var/state/shorewall). I''m afraid I was a bit short with Perry for which I
apologize.
Here''s the story:
1. What is the ''restarted'' file used for?
This file was introduced in version 1.3.5 to a...
2017 May 24
2
Howto switch from distribution to self compiled?
...bd -b"
old:
SBINDIR: /usr/sbin
BINDIR: /usr/bin
SWATDIR: /usr/share/swat
CONFIGFILE: /etc/samba/smb.conf
LOGFILEBASE: /var/log/samba
LMHOSTSFILE: /etc/samba/lmhosts
LIBDIR: /usr/lib64
MODULESDIR: /usr/lib64/samba
SHLIBEXT: so
LOCKDIR: /var/lib/samba
STATEDIR: /var/lib/samba
CACHEDIR: /var/lib/samba
PIDDIR: /var/run
SMB_PASSWD_FILE: /var/lib/samba/private/smbpasswd
PRIVATE_DIR: /var/lib/samba/private
NCALRPCDIR: /var/ncalrpc
NMBDSOCKETDIR: /var/nmbd
new:
SBINDIR: /usr/local/samba/sbin
BINDIR: /usr/local/samba/bin
CON...
2018 Jun 10
2
Samba Time Synchronisation wikipage
...l/samba/sbin
CONFIGFILE: /usr/local/samba/etc/smb.conf
NCALRPCDIR: /usr/local/samba/var/run/ncalrpc
LOGFILEBASE: /usr/local/samba/var
LMHOSTSFILE: /usr/local/samba/etc/lmhosts
DATADIR: /usr/local/samba/share
MODULESDIR: /usr/local/samba/lib
LOCKDIR: /usr/local/samba/var/lock
STATEDIR: /usr/local/samba/var/locks
CACHEDIR: /usr/local/samba/var/cache
PIDDIR: /usr/local/samba/var/run
PRIVATE_DIR: /usr/local/samba/private
CODEPAGEDIR: /usr/local/samba/share/codepages
SETUPDIR: /usr/local/samba/share/setup
WINBINDD_SOCKET_DIR: /usr/local/samba/var/run/winbindd
WI...
2017 Jun 16
2
Erro sysvolcheck/sysvolreset
Hello!
Any idea ?
Regards
Em 07-06-2017 09:30, Carlos A. P. Cunha escreveu:
>
> Hello!
>
> Any idea ?
>
>
> Regards
>
>
>
> Em 31-05-2017 12:00, Carlos A. P. Cunha escreveu:
>>
>> Hi
>>
>> My configuration:
>>
>> smb.conf
>>
>> # Global parameters
>> [global]
>> workgroup = MYSERVER
>>
2018 Jul 26
4
Problem with definition of slist in CFEngine
..."sys.policy_hub ............. = $(sys.policy_hub)",
"sys.policy_hub_port ........ = $(sys.policy_hub_port)",
"sys.release ................ = $(sys.release)",
"sys.resolv ................. = $(sys.resolv)",
"sys.statedir ............... = $(sys.statedir)",
"sys.sysday ................. = $(sys.sysday)",
"sys.systime ................ = $(sys.systime)",
"sys.update_policy_path ..... = $(sys.update_policy_path)",
"sys.uptime ....................
2013 Jul 31
2
nut package with Riello UPS support
...tsov (EKTOS) wrote:
>
> > Is this a trouble? Driver use path /var/state/ups/ but upsd use path
> /var/db/nut/upsd.pid
>
> Yes, the driver and upsd need to agree on the path to the socket.
>
> From the FreeBSD ports tree:
>
> /usr/ports/sysutils/nut/Makefile:
>
> STATEDIR?= /var/db/nut
> [...]
> CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \
> --program-transform-name="" \
> --localstatedir=${STATEDIR} \
> --datadir=${PREFIX}/etc/nut \
> --with-drvpath=${PREFIX}/libexe...
2017 Aug 12
0
Samba 4.6 replication issue (WERR_FILE_NOT_FOUND)
...86_64 GNU/Linux
Paths:
BINDIR: /usr/bin
SBINDIR: /usr/sbin
CONFIGFILE: /etc/samba/smb.conf
NCALRPCDIR: /run/samba/ncalrpc
LOGFILEBASE: /var/log/samba
LMHOSTSFILE: /etc/samba/lmhosts
DATADIR: /usr/share
MODULESDIR: /usr/lib64/samba
LOCKDIR: /var/lib/samba/lock
STATEDIR: /var/lib/samba
CACHEDIR: /var/lib/samba
PIDDIR: /run
PRIVATE_DIR: /var/lib/samba/private
CODEPAGEDIR: /usr/share/samba/codepages
SETUPDIR: /usr/share/samba/setup
WINBINDD_SOCKET_DIR: /run/samba/winbindd
WINBINDD_PRIVILEGED_SOCKET_DIR: /var/lib/samba/winbindd_privileged...
2025 May 18
1
pidpath, altpidpath, statepath considered muddled or confusing
...persist across reboots
/var/run/nut:
- pidfiles
- (probably) sockets
1) configure args slightly confusing autoconf vs nut
nut has configure args in two groups; one setting the usual autoconf
variables not really about nut, and the second group setting state, pid,
altpid:
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--with-statepath=PATH path for ups state files (${STATEPATH}, typically...