Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
picomon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
arn
picomon
Commits
d7d493c2
Commit
d7d493c2
authored
Aug 25, 2014
by
Colomban Wendling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small imports cleanup
parent
17288503
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
bin/picomon
bin/picomon
+2
-2
bin/picomon-watchdog
bin/picomon-watchdog
+6
-8
No files found.
bin/picomon
View file @
d7d493c2
#!/usr/bin/env python3
import
picomon.__main__
from
picomon.__main__
import
run
picomon
.
__main__
.
run
()
run
()
bin/picomon-watchdog
View file @
d7d493c2
#!/usr/bin/env python3
import
subprocess
import
sys
from
subprocess
import
call
from
sys
import
argv
import
os
import
importlib
from
picomon
import
config
from
picomon
import
mails
from
picomon
import
config
,
mails
from
picomon.__main__
import
parse_args
,
import_config
# launch picomon
filename
=
'picomon'
if
os
.
path
.
sep
in
sys
.
argv
[
0
]:
filename
=
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
argv
[
0
]),
filename
)
if
os
.
path
.
sep
in
argv
[
0
]:
filename
=
os
.
path
.
join
(
os
.
path
.
dirname
(
argv
[
0
]),
filename
)
retcode
=
subprocess
.
call
([
filename
]
+
sys
.
argv
[
1
:])
retcode
=
call
([
filename
]
+
argv
[
1
:])
# load config
args
=
parse_args
()
...
...
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