diff options
author | sullrich <sullrich@pfsense.org> | 2009-12-02 23:21:09 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-12-02 23:21:09 -0500 |
commit | cd12593b723b2f4c93d1c8f554a7e99bd66d50fa (patch) | |
tree | 950937664ed1ef99a6503d4dd5b3047c880c53d1 /etc/inc/pkg-utils.inc | |
parent | 1e5c49aad6abc8334ca2679b5a7d65a7de2eb8a9 (diff) | |
download | pfsense-cd12593b723b2f4c93d1c8f554a7e99bd66d50fa.zip pfsense-cd12593b723b2f4c93d1c8f554a7e99bd66d50fa.tar.gz |
Check to see if syslogd is running before killing
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 7775b1a..f18bff7 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -521,7 +521,8 @@ function install_package_xml($pkg) { mwexec("/usr/sbin/fifolog_create -s 32768 {$g['varlog_path']}/{$pkg_info['logging']['logfilename']}"); chmod($g['varlog_path'] . '/' . $pkg_info['logging']['logfilename'], 0600); @fwrite($fd_log, "Adding text to file /etc/syslog.conf\n"); - mwexec("killall syslogd"); + if(is_process_running("syslogd")) + mwexec("killall syslogd"); system_syslogd_start(); } |