diff options
Diffstat (limited to 'misc/upclient/files/upclient.sh')
-rw-r--r-- | misc/upclient/files/upclient.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/misc/upclient/files/upclient.sh b/misc/upclient/files/upclient.sh index f124a7f31218..549ea783dc44 100644 --- a/misc/upclient/files/upclient.sh +++ b/misc/upclient/files/upclient.sh @@ -22,6 +22,8 @@ config_dir=${PREFIX}/etc config_file=${program_file}.conf config_path=${config_dir}/${config_file} +sample_path=${config_path}.sample + pid_dir=/var/run pid_file=${program_file}.pid pid_path=${pid_dir}/${pid_file} @@ -54,7 +56,15 @@ start) "${config_path}." exit 72 fi - ${program_path} && + kw="IdleTime|OS|(OS|CPU)Level" + if egrep -qs "^[$ws]*Send($kw)[$ws]*=" ${config_path} + then + logger -sp ${syslog_facility} -t ${program_file} \ + "unable to start: ${config_path} needs to be updated" \ + "from ${sample_path}." + exit 72 + fi + ${program_path} 2> /dev/null && echo -n " ${program_file}" ;; stop) |