Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
c3f5a482
Commit
c3f5a482
authored
Apr 06, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some logging (configd)
parent
fc753b5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
processhandler.py
src/opnsense/service/modules/processhandler.py
+2
-0
No files found.
src/opnsense/service/modules/processhandler.py
View file @
c3f5a482
...
...
@@ -372,6 +372,7 @@ class Action(object):
# script type commands, basic script type only uses exit statuses, script_output sends back stdout data.
if
self
.
command
is
None
:
# no command supplied, exit
syslog
.
syslog
(
syslog
.
LOG_ERR
,
'[
%
s] returned "No command"'
%
message_uuid
)
return
'No command'
# build script command to execute, shared for both types
...
...
@@ -392,6 +393,7 @@ class Action(object):
if
exit_status
==
0
:
return
'OK'
else
:
syslog
.
syslog
(
syslog
.
LOG_ERR
,
'[
%
s] returned exit status
%
d'
%
(
message_uuid
,
exit_status
))
return
'Error (
%
d)'
%
exit_status
except
:
syslog
.
syslog
(
syslog
.
LOG_ERR
,
'[
%
s] Script action failed at
%
s'
%
(
message_uuid
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment