01-08-2010
How can i tell which conf file it is using
i have this program running on my solaris and there are two identical config files, i am not sure which one is being used by this program but I am sure it uses one of them.
I run lsof -p {pid} but it does not show which config file has been read by this program, what i am doing wrong?
thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i am running samba 3 on solaris 9
i have a question where is the smb.conf located
is it in /usr/local/samba/lib or private (6 Replies)
Discussion started by: rmuhammad
6 Replies
2. IP Networking
Hi
I tried a lot bt could not configure snmptrapd.conf...
Can any one tell me the steps or give me the configured snmptrapd.conf file??
Its really important..Plz help me..
Thanx (0 Replies)
Discussion started by: swapna_me
0 Replies
3. UNIX for Advanced & Expert Users
HI,
I want a help for Configuring snmpd.conf and snmptrapd.conf (i.e Configuring SNMP)
for receiving
TRAPS in my networks. I am using RHEL4.0 OS.
Please tell me How I can configure above two files in a proper way and at an
advanced level.
Especially I am getting... (2 Replies)
Discussion started by: jagdish.machhi@
2 Replies
4. AIX
Hi All,
I am working on a server which has an /etc/syslog.conf file with the following entries (example):
local6.debug /dplogs/uss1udp001.log rotate size 1500m time 1d files 14
local7.debug /dplogs/uss1udp002.log rotate size 1500m time 1d files 14
-----------------------------... (3 Replies)
Discussion started by: jeffpas
3 Replies
5. Solaris
Hello Guys,
Do we need to configure this file only if we add SAN disk or even if we add local disk, do we need to modify? (4 Replies)
Discussion started by: mokkan
4 Replies
6. UNIX for Advanced & Expert Users
Hi all, i have a scenario below:
<========> <=========> Internet
With IP:
-Local: 10.0.0.2
-Squid: 2NICs (10.0.0.1 and 192.168.100.1)
-Internet: 192.168.100.2
* On Squid: hosting a website name www.sample.com
* On Local: hosting a website name www.abc.sample.com
* Complete DNS... (0 Replies)
Discussion started by: kidzer0
0 Replies
7. Shell Programming and Scripting
Hi,
Lets say I have a script which reads a conf file (say MASTERFILE) line by line to fetch file_name, source_path, dest_path. But currently, here the file name are static for eg: ABC.txt or XYZ.txt. So i have hard-coded in the conf file.
So what happens that the script picks up the file_name... (1 Reply)
Discussion started by: amit.mathur08
1 Replies
8. Shell Programming and Scripting
hello
i have a configuration file with some fields, for example:
#file conf.cfg
name;object;var1;var2;var8
then i have a csv data file:
var1;var2;var3;var4;var5;var6;var7;var8;var9
aaa;bbb;ccc;ddd;eee;fff;ggg;hhh;iii
...
now i should read the conf.cfg file and extract the... (3 Replies)
Discussion started by: drain
3 Replies
9. Shell Programming and Scripting
Hello all,
Newbie here.
I'm currently tasked with updating rsyslog.conf and auditd.conf on a large set of servers. I know the exact logging configurations that I want to enable. I have updated both files on on a server and hope to use the updated files as a template for the rest of the... (3 Replies)
Discussion started by: Mide
3 Replies
10. Solaris
Hi,
I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf.
I used below to configure both settings:
# svccfg -s dns/client
svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Discussion started by: flexihopper18
1 Replies
LEARN ABOUT NETBSD
pidfile
PIDFILE(3) BSD Library Functions Manual PIDFILE(3)
NAME
pidfile -- write a daemon pid file
LIBRARY
System Utilities Library (libutil, -lutil)
SYNOPSIS
#include <util.h>
int
pidfile(const char *path);
DESCRIPTION
pidfile() creates a file containing the process ID of the caller program. The pid file can be used as a quick reference if the process needs
to be sent a signal. When the program exits, the pid file is removed automatically, unless the program receives a fatal signal.
If path is NULL or a plain basename (a name containing no directory components), the pid file is created in the /var/run directory. The file
name has the form /var/run/basename.pid. The basename part is either the value of path if it was not NULL, or the program name as returned
by getprogname(3) otherwise.
If path is an absolute or relative path (i.e. it contains the '/' character), the pid file is created in the provided location.
Note that only the first invocation of pidfile() causes a pid file to be written; subsequent invocations have no effect unless a new path is
supplied. If called with a new path, pidfile() will remove the old pid file and write the new one.
RETURN VALUES
pidfile() returns 0 on success and -1 on failure.
SEE ALSO
atexit(3)
HISTORY
The pidfile() function call appeared in NetBSD 1.5. Support for creating pid files in any arbitrary path was added in NetBSD 6.0.
BUGS
pidfile() uses atexit(3) to ensure the pid file is unlinked at program exit. However, programs that use the _exit(2) function (for example,
in signal handlers) will not trigger this behaviour.
BSD
March 23, 2011 BSD