File: rsyslogd-stop.sh

package info (click to toggle)
dracut 005-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,368 kB
  • ctags: 207
  • sloc: sh: 6,487; ansic: 192; makefile: 108
file content (10 lines) | stat: -rwxr-xr-x 222 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# Kills rsyslogd

if [ -f /var/run/syslogd.pid ]; then
	read pid < /var/run/syslogd.pid
	kill $pid
	kill -0 $pid && kill -9 $pid
else
    warn "rsyslogd-stop: Could not find a pid for rsyslogd. Won't kill it."
fi